You are here

public function Twig_Tests_Node_Expression_CallTest::testGetArgumentsWithWrongNamedArgumentName in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/test/Twig/Tests/Node/Expression/CallTest.php \Twig_Tests_Node_Expression_CallTest::testGetArgumentsWithWrongNamedArgumentName()

@expectedException Twig_Error_Syntax @expectedExceptionMessage Unknown argument "unknown" for function "date(format, timestamp)".

File

vendor/twig/twig/test/Twig/Tests/Node/Expression/CallTest.php, line 44

Class

Twig_Tests_Node_Expression_CallTest

Code

public function testGetArgumentsWithWrongNamedArgumentName() {
  $node = new Twig_Tests_Node_Expression_Call(array(), array(
    'type' => 'function',
    'name' => 'date',
  ));
  $node
    ->getArguments('date', array(
    'Y-m-d',
    'timestamp' => null,
    'unknown' => '',
  ));
}