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:
parent
a023c7929a
commit
d742ffca4f
2 changed files with 23 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue