1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Fix removal of missing keys

This commit is contained in:
Jordi Boggiano 2014-04-10 15:55:05 +02:00
parent a023c7929a
commit d742ffca4f
2 changed files with 23 additions and 0 deletions

View file

@ -347,6 +347,27 @@ class JsonManipulatorTest extends \PHPUnit_Framework_TestCase
}
}
}
'
),
'works on undefined ones' => array(
'{
"repositories": {
"main": {
"foo": "bar",
"bar": "baz"
}
}
}',
'removenotthere',
true,
'{
"repositories": {
"main": {
"foo": "bar",
"bar": "baz"
}
}
}
'
),
'works on empty repos' => array(