1
0
Fork 0

Add test for escape sequences

pull/1594/merge
Jordi Boggiano 2013-02-18 22:13:54 +01:00
parent e348642aa7
commit b4d691e46d
1 changed files with 3 additions and 1 deletions

View File

@ -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());