public function Twig_Tests_Node_Expression_CallTest::testGetArgumentsWhenArgumentIsDefinedTwice in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/test/Twig/Tests/Node/Expression/CallTest.php \Twig_Tests_Node_Expression_CallTest::testGetArgumentsWhenArgumentIsDefinedTwice()
@expectedException Twig_Error_Syntax @expectedExceptionMessage Argument "format" is defined twice for function "date".
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ Node/ Expression/ CallTest.php, line 34
Class
Code
public function testGetArgumentsWhenArgumentIsDefinedTwice() {
$node = new Twig_Tests_Node_Expression_Call(array(), array(
'type' => 'function',
'name' => 'date',
));
$node
->getArguments('date', array(
'Y-m-d',
'format' => 'U',
));
}