소스 검색

Add test for escape sequences

Jordi Boggiano 12 년 전
부모
커밋
b4d691e46d
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      tests/Composer/Test/Json/JsonManipulatorTest.php

+ 3 - 1
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());