ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
testDisplayBlocksAcceptTemplateOnlyAsBlocks () | |
@expectedException LogicException More... | |
testGetAttributeExceptions ($template, $message) | |
@dataProvider getAttributeExceptions More... | |
getAttributeExceptions () | |
testGetAttributeWithSandbox ($object, $item, $allowed) | |
@dataProvider getGetAttributeWithSandbox More... | |
getGetAttributeWithSandbox () | |
testGetAttributeWithTemplateAsObject () | |
@group legacy More... | |
testGetAttributeWithTemplateAsObjectForDeprecations () | |
@group legacy @expectedDeprecation Calling "string" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. More... | |
testRenderBlockWithUndefinedBlock () | |
@group legacy @expectedDeprecation Silent display of undefined block "unknown" in template "index.twig" is deprecated since version 1.29 and will throw an exception in 2.0. More... | |
testGetAttributeOnArrayWithConfusableKey () | |
testGetAttribute ($defined, $value, $object, $item, $arguments, $type) | |
@dataProvider getGetAttributeTests More... | |
testGetAttributeStrict ($defined, $value, $object, $item, $arguments, $type, $exceptionMessage=null) | |
@dataProvider getGetAttributeTests More... | |
testGetAttributeDefined ($defined, $value, $object, $item, $arguments, $type) | |
@dataProvider getGetAttributeTests More... | |
testGetAttributeDefinedStrict ($defined, $value, $object, $item, $arguments, $type) | |
@dataProvider getGetAttributeTests More... | |
testGetAttributeCallExceptions () | |
getGetAttributeTests () | |
testGetIsMethods () | |
@expectedException Twig_Error_Runtime More... | |
Definition at line 11 of file TemplateTest.php.
Twig_Tests_TemplateTest::getAttributeExceptions | ( | ) |
Definition at line 49 of file TemplateTest.php.
Twig_Tests_TemplateTest::getGetAttributeTests | ( | ) |
Definition at line 304 of file TemplateTest.php.
References $test, $tests, Twig_TemplateInterface\ANY_CALL, Twig_TemplateInterface\ARRAY_CALL, and Twig_TemplateInterface\METHOD_CALL.
Twig_Tests_TemplateTest::getGetAttributeWithSandbox | ( | ) |
Definition at line 101 of file TemplateTest.php.
Twig_Tests_TemplateTest::testDisplayBlocksAcceptTemplateOnlyAsBlocks | ( | ) |
@expectedException LogicException
Definition at line 16 of file TemplateTest.php.
References $template.
Twig_Tests_TemplateTest::testGetAttribute | ( | $defined, | |
$value, | |||
$object, | |||
$item, | |||
$arguments, | |||
$type | |||
) |
@dataProvider getGetAttributeTests
Definition at line 246 of file TemplateTest.php.
Twig_Tests_TemplateTest::testGetAttributeCallExceptions | ( | ) |
Definition at line 295 of file TemplateTest.php.
References $template.
Twig_Tests_TemplateTest::testGetAttributeDefined | ( | $defined, | |
$value, | |||
$object, | |||
$item, | |||
$arguments, | |||
$type | |||
) |
@dataProvider getGetAttributeTests
Definition at line 278 of file TemplateTest.php.
Twig_Tests_TemplateTest::testGetAttributeDefinedStrict | ( | $defined, | |
$value, | |||
$object, | |||
$item, | |||
$arguments, | |||
$type | |||
) |
@dataProvider getGetAttributeTests
Definition at line 288 of file TemplateTest.php.
Twig_Tests_TemplateTest::testGetAttributeExceptions | ( | $template, | |
$message | |||
) |
@dataProvider getAttributeExceptions
Definition at line 25 of file TemplateTest.php.
Twig_Tests_TemplateTest::testGetAttributeOnArrayWithConfusableKey | ( | ) |
Definition at line 218 of file TemplateTest.php.
References $template.
Twig_Tests_TemplateTest::testGetAttributeStrict | ( | $defined, | |
$value, | |||
$object, | |||
$item, | |||
$arguments, | |||
$type, | |||
$exceptionMessage = null |
|||
) |
@dataProvider getGetAttributeTests
Definition at line 256 of file TemplateTest.php.
Twig_Tests_TemplateTest::testGetAttributeWithSandbox | ( | $object, | |
$item, | |||
$allowed | |||
) |
@dataProvider getGetAttributeWithSandbox
Definition at line 75 of file TemplateTest.php.
References $template.
Twig_Tests_TemplateTest::testGetAttributeWithTemplateAsObject | ( | ) |
@group legacy
Definition at line 114 of file TemplateTest.php.
References $template, Twig_TemplateInterface\ANY_CALL, and Twig_TemplateInterface\METHOD_CALL.
Twig_Tests_TemplateTest::testGetAttributeWithTemplateAsObjectForDeprecations | ( | ) |
@group legacy @expectedDeprecation Calling "string" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0.
@expectedDeprecation Calling "string" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. @expectedDeprecation Calling "true" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. @expectedDeprecation Calling "true" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. @expectedDeprecation Calling "zero" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. @expectedDeprecation Calling "zero" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. @expectedDeprecation Calling "empty" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. @expectedDeprecation Calling "empty" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. @expectedDeprecation Calling "renderBlock" on template "index.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. Use block("name") instead). @expectedDeprecation Calling "displayBlock" on template "index.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. Use block("name") instead). @expectedDeprecation Calling "hasBlock" on template "index.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. Use "block("name") is defined" instead). @expectedDeprecation Calling "render" on template "index.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. Use include("index.twig") instead). @expectedDeprecation Calling "display" on template "index.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. Use include("index.twig") instead). @expectedDeprecation Calling "renderBlock" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. Use block("name", template) instead). @expectedDeprecation Calling "displayBlock" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. Use block("name", template) instead). @expectedDeprecation Calling "hasBlock" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. Use "block("name", template) is defined" instead). @expectedDeprecation Calling "render" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. Use include("index1.twig") instead). @expectedDeprecation Calling "display" on template "index1.twig" from template "index.twig" is deprecated since version 1.28 and won't be supported anymore in 2.0. Use include("index1.twig") instead).
Definition at line 162 of file TemplateTest.php.
References $template, Twig_TemplateInterface\ANY_CALL, and Twig_TemplateInterface\METHOD_CALL.
Twig_Tests_TemplateTest::testGetIsMethods | ( | ) |
@expectedException Twig_Error_Runtime
Definition at line 432 of file TemplateTest.php.
References $template.
Twig_Tests_TemplateTest::testRenderBlockWithUndefinedBlock | ( | ) |
@group legacy @expectedDeprecation Silent display of undefined block "unknown" in template "index.twig" is deprecated since version 1.29 and will throw an exception in 2.0.
Use the "block('unknown') is defined" expression to test for block existence. @expectedDeprecation Silent display of undefined block "unknown" in template "index.twig" is deprecated since version 1.29 and will throw an exception in 2.0. Use the "block('unknown') is defined" expression to test for block existence.
Definition at line 209 of file TemplateTest.php.
References $template.