You are here

public function Twig_Tests_Node_Expression_CallTest::testGetArgumentsWhenPositionalArgumentsAfterNamedArguments 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::testGetArgumentsWhenPositionalArgumentsAfterNamedArguments()

@expectedException Twig_Error_Syntax @expectedExceptionMessage Positional arguments cannot be used after named arguments for function "date".

File

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

Class

Twig_Tests_Node_Expression_CallTest

Code

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