|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for Twig_Tests_Node_Expression_CallTest:
Collaboration diagram for Twig_Tests_Node_Expression_CallTest:Public Member Functions | |
| testGetArguments () | |
| testGetArgumentsWhenPositionalArgumentsAfterNamedArguments () | |
| @expectedException Twig_Error_Syntax @expectedExceptionMessage Positional arguments cannot be used after named arguments for function "date". More... | |
| testGetArgumentsWhenArgumentIsDefinedTwice () | |
| @expectedException Twig_Error_Syntax @expectedExceptionMessage Argument "format" is defined twice for function "date". More... | |
| testGetArgumentsWithWrongNamedArgumentName () | |
| @expectedException Twig_Error_Syntax @expectedExceptionMessage Unknown argument "unknown" for function "date(format, timestamp)". More... | |
| testGetArgumentsWithWrongNamedArgumentNames () | |
| @expectedException Twig_Error_Syntax @expectedExceptionMessage Unknown arguments "unknown1", "unknown2" for function "date(format, timestamp)". More... | |
| testResolveArgumentsWithMissingValueForOptionalArgument () | |
| @expectedException Twig_Error_Syntax @expectedExceptionMessage Argument "case_sensitivity" could not be assigned for function "substr_compare(main_str, str, offset, length, case_sensitivity)" because it is mapped to an internal PHP function which cannot determine default value for optional argument "length". More... | |
| testResolveArgumentsOnlyNecessaryArgumentsForCustomFunction () | |
| testGetArgumentsForStaticMethod () | |
| 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. More... | |
| customFunction ($arg1, $arg2='default', $arg3=array()) | |
| customFunctionWithArbitraryArguments () | |
| testResolveArgumentsWithMissingParameterForArbitraryArgumentsOnFunction () | |
| @expectedException LogicException @expectedExceptionMessageRegExp #^The last parameter of "custom_Twig_Tests_Node_Expression_CallTest_function" for function "foo" must be an array with default value, eg. More... | |
| testResolveArgumentsWithMissingParameterForArbitraryArgumentsOnObject () | |
| @expectedException LogicException @expectedExceptionMessageRegExp #^The last parameter of "CallableTestClass\:\:__invoke" for function "foo" must be an array with default value, eg. More... | |
Static Public Member Functions | |
| static | customStaticFunction ($arg1, $arg2='default', $arg3=array()) |
Definition at line 12 of file CallTest.php.
| Twig_Tests_Node_Expression_CallTest::customFunction | ( | $arg1, | |
$arg2 = 'default', |
|||
$arg3 = array() |
|||
| ) |
Definition at line 97 of file CallTest.php.
| Twig_Tests_Node_Expression_CallTest::customFunctionWithArbitraryArguments | ( | ) |
Definition at line 101 of file CallTest.php.
|
static |
Definition at line 93 of file CallTest.php.
| Twig_Tests_Node_Expression_CallTest::testGetArguments | ( | ) |
Definition at line 14 of file CallTest.php.
| Twig_Tests_Node_Expression_CallTest::testGetArgumentsForStaticMethod | ( | ) |
Definition at line 77 of file CallTest.php.
| Twig_Tests_Node_Expression_CallTest::testGetArgumentsWhenArgumentIsDefinedTwice | ( | ) |
@expectedException Twig_Error_Syntax @expectedExceptionMessage Argument "format" is defined twice for function "date".
Definition at line 34 of file CallTest.php.
| Twig_Tests_Node_Expression_CallTest::testGetArgumentsWhenPositionalArgumentsAfterNamedArguments | ( | ) |
@expectedException Twig_Error_Syntax @expectedExceptionMessage Positional arguments cannot be used after named arguments for function "date".
Definition at line 24 of file CallTest.php.
| Twig_Tests_Node_Expression_CallTest::testGetArgumentsWithWrongNamedArgumentName | ( | ) |
@expectedException Twig_Error_Syntax @expectedExceptionMessage Unknown argument "unknown" for function "date(format, timestamp)".
Definition at line 44 of file CallTest.php.
| Twig_Tests_Node_Expression_CallTest::testGetArgumentsWithWrongNamedArgumentNames | ( | ) |
@expectedException Twig_Error_Syntax @expectedExceptionMessage Unknown arguments "unknown1", "unknown2" for function "date(format, timestamp)".
Definition at line 54 of file CallTest.php.
| Twig_Tests_Node_Expression_CallTest::testResolveArgumentsOnlyNecessaryArgumentsForCustomFunction | ( | ) |
Definition at line 70 of file 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()".
Definition at line 87 of file CallTest.php.
| Twig_Tests_Node_Expression_CallTest::testResolveArgumentsWithMissingParameterForArbitraryArgumentsOnFunction | ( | ) |
@expectedException LogicException @expectedExceptionMessageRegExp #^The last parameter of "custom_Twig_Tests_Node_Expression_CallTest_function" for function "foo" must be an array with default value, eg.
"array \$arg \= array\(\)".$#
Definition at line 109 of file CallTest.php.
| Twig_Tests_Node_Expression_CallTest::testResolveArgumentsWithMissingParameterForArbitraryArgumentsOnObject | ( | ) |
@expectedException LogicException @expectedExceptionMessageRegExp #^The last parameter of "CallableTestClass\:\:__invoke" for function "foo" must be an array with default value, eg.
"array \$arg \= array\(\)".$#
Definition at line 119 of file CallTest.php.
| Twig_Tests_Node_Expression_CallTest::testResolveArgumentsWithMissingValueForOptionalArgument | ( | ) |
@expectedException Twig_Error_Syntax @expectedExceptionMessage Argument "case_sensitivity" could not be assigned for function "substr_compare(main_str, str, offset, length, case_sensitivity)" because it is mapped to an internal PHP function which cannot determine default value for optional argument "length".
Definition at line 64 of file CallTest.php.