You are here

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

@expectedException LogicException @expectedExceptionMessage The last parameter of "Twig_Tests_Node_Expression_CallTest::customFunctionWithArbitraryArguments" for function "foo" must be an array with default value, eg. "array $arg = array()".

File

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

Class

Twig_Tests_Node_Expression_CallTest

Code

public function testResolveArgumentsWithMissingParameterForArbitraryArguments() {
  $node = new Twig_Tests_Node_Expression_Call(array(), array(
    'type' => 'function',
    'name' => 'foo',
    'is_variadic' => true,
  ));
  $node
    ->getArguments(array(
    $this,
    'customFunctionWithArbitraryArguments',
  ), array());
}