public function testProcess() { $container =
new ContainerBuilder();
$definition =
$container->
register('foo'
);
$definition->
setArguments([null, 1, 'a'
]);
$definition->
setMethodCalls([ ['bar',
['a', 'b'
]],
['baz',
['c', 'd'
]],
]);
$pass =
new CheckArgumentsValidityPass();
$pass->
process($container);
$this->
assertEquals([null, 1, 'a'
],
$container->
getDefinition('foo'
)->
getArguments());
$this->
assertEquals([ ['bar',
['a', 'b'
]],
['baz',
['c', 'd'
]],
],
$container->
getDefinition('foo'
)->
getMethodCalls());
} /**
* @dataProvider definitionProvider
*/