public function testMappedAttributeKeyIsRemoved() { $node =
new PrototypedArrayNode('root'
);
$node->
setKeyAttribute('id', true
);
// each item under the root is an array, with one scalar item
$prototype =
new ArrayNode(null,
$node);
$prototype->
addChild(new ScalarNode('foo'
));
$node->
setPrototype($prototype);
$children =
[];
$children[] =
['id' => 'item_name', 'foo' => 'bar'
];
$normalized =
$node->
normalize($children);
$expected =
[];