class MergeTest extends TestCase
{ public function testForbiddenOverwrite() { $this->
expectException(ForbiddenOverwriteException::
class);
$tb =
new TreeBuilder('root', 'array'
);
$tree =
$tb ->
getRootNode() ->
children() ->
node('foo', 'scalar'
) ->
cannotBeOverwritten() ->
end() ->
end() ->
end() ->
buildTree() ;
$a =
[ 'foo' => 'bar',
];
$b =
[