mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add test for escape sequences
This commit is contained in:
parent
e348642aa7
commit
b4d691e46d
1 changed files with 3 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue