From b4d691e46dc86239334bccdfc5c1edb30cbb0bb1 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 18 Feb 2013 22:13:54 +0100 Subject: [PATCH] Add test for escape sequences --- tests/Composer/Test/Json/JsonManipulatorTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Composer/Test/Json/JsonManipulatorTest.php b/tests/Composer/Test/Json/JsonManipulatorTest.php index cd7c16e83..4f3a91093 100644 --- a/tests/Composer/Test/Json/JsonManipulatorTest.php +++ b/tests/Composer/Test/Json/JsonManipulatorTest.php @@ -400,9 +400,11 @@ class JsonManipulatorTest extends \PHPUnit_Framework_TestCase }'); $this->assertTrue($manipulator->addConfigSetting('test', 'a\b')); + $this->assertTrue($manipulator->addConfigSetting('test2', "a\nb\fa")); $this->assertEquals('{ "config": { - "test": "a\\\\b" + "test": "a\\\\b", + "test2": "a\nb\fa" } } ', $manipulator->getContents());