/**
* @dataProvider ignoreAndRemoveMatrixProvider
*/
public function testIgnoreAndRemoveBehaviors(bool
$ignore, bool
$remove, array|\Exception
$expected, string
$message = ''
) { if ($expected instanceof \Exception
) { $this->
expectException($expected::
class);
$this->
expectExceptionMessage($expected->
getMessage());
} $node =
new ArrayNode('root'
);
$node->
setIgnoreExtraKeys($ignore,
$remove);
$result =
$node->
normalize(['foo' => 'bar'
]);
$this->
assertSame($expected,
$result,
$message);
} /**
* @dataProvider getPreNormalizationTests
*/
public function testPreNormalize(array
$denormalized, array
$normalized) { $node =
new ArrayNode('foo'
);