public function Twig_Tests_Node_Expression_CallTest::testGetArgumentsWithWrongNamedArgumentNames 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::testGetArgumentsWithWrongNamedArgumentNames()
@expectedException Twig_Error_Syntax @expectedExceptionMessage Unknown arguments "unknown1", "unknown2" for function "date(format, timestamp)".
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ Node/ Expression/ CallTest.php, line 54
Class
Code
public function testGetArgumentsWithWrongNamedArgumentNames() {
$node = new Twig_Tests_Node_Expression_Call(array(), array(
'type' => 'function',
'name' => 'date',
));
$node
->getArguments('date', array(
'Y-m-d',
'timestamp' => null,
'unknown1' => '',
'unknown2' => '',
));
}