17 $this->assertEquals(array(
'U', null), $node->getArguments(
'date', array(
'format' =>
'U',
'timestamp' => null)));
27 $node->getArguments(
'date', array(
'timestamp' => 123456,
'Y-m-d'));
37 $node->getArguments(
'date', array(
'Y-m-d',
'format' =>
'U'));
47 $node->getArguments(
'date', array(
'Y-m-d',
'timestamp' => null,
'unknown' =>
''));
57 $node->getArguments(
'date', array(
'Y-m-d',
'timestamp' => null,
'unknown1' =>
'',
'unknown2' =>
''));
67 $node->getArguments(
'substr_compare', array(
'abcd',
'bc',
'offset' => 1,
'case_sensitivity' =>
true));
74 $this->assertEquals(array(
'arg1'), $node->getArguments(array($this,
'customFunction'), array(
'arg1' =>
'arg1')));
80 $this->assertEquals(array(
'arg1'), $node->getArguments(__CLASS__.
'::customStaticFunction', array(
'arg1' =>
'arg1')));
90 $node->getArguments(array($this,
'customFunctionWithArbitraryArguments'), array());
112 $node->getArguments(
'custom_Twig_Tests_Node_Expression_CallTest_function', array());
130 return parent::getArguments($callable, $arguments);
custom_Twig_Tests_Node_Expression_CallTest_function($required)
customFunction($arg1, $arg2='default', $arg3=array())
static customStaticFunction($arg1, $arg2='default', $arg3=array())
getArguments($callable, $arguments)
testResolveArgumentsOnlyNecessaryArgumentsForCustomFunction()
testGetArgumentsWithWrongNamedArgumentNames()
Twig_Error_Syntax Unknown arguments "unknown1", "unknown2" for function "date(format, timestamp)".
testGetArgumentsWhenArgumentIsDefinedTwice()
Twig_Error_Syntax Argument "format" is defined twice for function "date".
testResolveArgumentsWithMissingParameterForArbitraryArguments()
LogicException The last parameter of "Twig_Tests_Node_Expression_CallTest::customFunctionWithArbitra...
customFunctionWithArbitraryArguments()
testGetArgumentsWithWrongNamedArgumentName()
Twig_Error_Syntax Unknown argument "unknown" for function "date(format, timestamp)".
testGetArgumentsForStaticMethod()
testResolveArgumentsWithMissingParameterForArbitraryArgumentsOnFunction()
LogicException #^The last parameter of "custom_Twig_Tests_Node_Expression_CallTest_function" for fun...
testResolveArgumentsWithMissingParameterForArbitraryArgumentsOnObject()
LogicException #^The last parameter of "CallableTestClass\:\:__invoke" for function "foo" must be an...
testGetArgumentsWhenPositionalArgumentsAfterNamedArguments()
Twig_Error_Syntax Positional arguments cannot be used after named arguments for function "date"...
testResolveArgumentsWithMissingValueForOptionalArgument()
Twig_Error_Syntax Argument "case_sensitivity" could not be assigned for function "substr_compare(mai...