You are here

public function Twig_Tests_Node_Expression_CallTest::testGetArgumentsWhenArgumentIsDefinedTwice in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

Twig_Tests_Node_Expression_CallTest

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',
  ));
}