From 978b75559b970feb96e44d841bb003eefa985ce3 Mon Sep 17 00:00:00 2001 From: Willem Stuursma Date: Thu, 30 Aug 2018 11:04:56 +0200 Subject: [PATCH] Add test to make sure slashes stay unescaped when prettyfied --- tests/Util/JsonTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Util/JsonTest.php b/tests/Util/JsonTest.php index 04eaf7aaeb0..406d765f716 100644 --- a/tests/Util/JsonTest.php +++ b/tests/Util/JsonTest.php @@ -60,6 +60,7 @@ public function prettifyProvider() { return [ ['{"name":"John","age": "5"}', "{\n \"name\": \"John\",\n \"age\": \"5\"\n}"], + ['{"url":"https://www.example.com/"}', "{\n \"url\": \"https://www.example.com/\"\n}"], ]; }