Add test for escape sequences
parent
e348642aa7
commit
b4d691e46d
|
@ -400,9 +400,11 @@ class JsonManipulatorTest extends \PHPUnit_Framework_TestCase
|
||||||
}');
|
}');
|
||||||
|
|
||||||
$this->assertTrue($manipulator->addConfigSetting('test', 'a\b'));
|
$this->assertTrue($manipulator->addConfigSetting('test', 'a\b'));
|
||||||
|
$this->assertTrue($manipulator->addConfigSetting('test2', "a\nb\fa"));
|
||||||
$this->assertEquals('{
|
$this->assertEquals('{
|
||||||
"config": {
|
"config": {
|
||||||
"test": "a\\\\b"
|
"test": "a\\\\b",
|
||||||
|
"test2": "a\nb\fa"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
', $manipulator->getContents());
|
', $manipulator->getContents());
|
||||||
|
|
Loading…
Reference in New Issue