|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Inheritance diagram for Twig_Tests_Extension_SandboxTest:
Collaboration diagram for Twig_Tests_Extension_SandboxTest:Public Member Functions | |
| testSandboxWithInheritance () | |
| @expectedException Twig_Sandbox_SecurityError @expectedExceptionMessage Filter "json_encode" is not allowed in "1_child" at line 3. More... | |
| testSandboxGloballySet () | |
| testSandboxUnallowedMethodAccessor () | |
| testSandboxUnallowedFilter () | |
| testSandboxUnallowedTag () | |
| testSandboxUnallowedProperty () | |
| testSandboxUnallowedToString () | |
| testSandboxUnallowedToStringArray () | |
| testSandboxUnallowedFunction () | |
| testSandboxUnallowedRangeOperator () | |
| testSandboxAllowMethodFoo () | |
| testSandboxAllowMethodToString () | |
| testSandboxAllowMethodToStringDisabled () | |
| testSandboxAllowFilter () | |
| testSandboxAllowTag () | |
| testSandboxAllowProperty () | |
| testSandboxAllowFunction () | |
| testSandboxAllowRangeOperator () | |
| testSandboxAllowFunctionsCaseInsensitive () | |
| testSandboxLocallySetForAnInclude () | |
| testMacrosInASandbox () | |
| testSandboxDisabledAfterIncludeFunctionError () | |
Protected Member Functions | |
| setUp () | |
| getEnvironment ($sandboxed, $options, $templates, $tags=array(), $filters=array(), $methods=array(), $properties=array(), $functions=array()) | |
Static Protected Attributes | |
| static | $params |
| static | $templates |
Definition at line 12 of file SandboxTest.php.
|
protected |
Definition at line 281 of file SandboxTest.php.
References $loader, $options, $tags, and $templates.
Referenced by testMacrosInASandbox(), testSandboxAllowFilter(), testSandboxAllowFunction(), testSandboxAllowFunctionsCaseInsensitive(), testSandboxAllowMethodFoo(), testSandboxAllowMethodToString(), testSandboxAllowMethodToStringDisabled(), testSandboxAllowProperty(), testSandboxAllowRangeOperator(), testSandboxAllowTag(), testSandboxDisabledAfterIncludeFunctionError(), testSandboxGloballySet(), testSandboxLocallySetForAnInclude(), testSandboxUnallowedFilter(), testSandboxUnallowedFunction(), testSandboxUnallowedMethodAccessor(), testSandboxUnallowedProperty(), testSandboxUnallowedRangeOperator(), testSandboxUnallowedTag(), testSandboxUnallowedToString(), testSandboxUnallowedToStringArray(), and testSandboxWithInheritance().
Here is the caller graph for this function:
|
protected |
Definition at line 17 of file SandboxTest.php.
References $params.
| Twig_Tests_Extension_SandboxTest::testMacrosInASandbox | ( | ) |
Definition at line 250 of file SandboxTest.php.
References EOF, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxAllowFilter | ( | ) |
Definition at line 183 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxAllowFunction | ( | ) |
Definition at line 201 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxAllowFunctionsCaseInsensitive | ( | ) |
Definition at line 213 of file SandboxTest.php.
References FooObject\$called, $name, $params, getEnvironment(), and FooObject\reset().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxAllowMethodFoo | ( | ) |
Definition at line 159 of file SandboxTest.php.
References FooObject\$called, $params, getEnvironment(), and FooObject\reset().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxAllowMethodToString | ( | ) |
Definition at line 167 of file SandboxTest.php.
References FooObject\$called, $params, getEnvironment(), and FooObject\reset().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxAllowMethodToStringDisabled | ( | ) |
Definition at line 175 of file SandboxTest.php.
References FooObject\$called, $params, getEnvironment(), and FooObject\reset().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxAllowProperty | ( | ) |
Definition at line 195 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxAllowRangeOperator | ( | ) |
Definition at line 207 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxAllowTag | ( | ) |
Definition at line 189 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxDisabledAfterIncludeFunctionError | ( | ) |
Definition at line 264 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxGloballySet | ( | ) |
Definition at line 53 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxLocallySetForAnInclude | ( | ) |
Definition at line 225 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxUnallowedFilter | ( | ) |
Definition at line 72 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxUnallowedFunction | ( | ) |
Definition at line 135 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxUnallowedMethodAccessor | ( | ) |
Definition at line 59 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxUnallowedProperty | ( | ) |
Definition at line 96 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxUnallowedRangeOperator | ( | ) |
Definition at line 147 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxUnallowedTag | ( | ) |
Definition at line 84 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxUnallowedToString | ( | ) |
Definition at line 109 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxUnallowedToStringArray | ( | ) |
Definition at line 122 of file SandboxTest.php.
References $params, and getEnvironment().
Here is the call graph for this function:| Twig_Tests_Extension_SandboxTest::testSandboxWithInheritance | ( | ) |
@expectedException Twig_Sandbox_SecurityError @expectedExceptionMessage Filter "json_encode" is not allowed in "1_child" at line 3.
Definition at line 47 of file SandboxTest.php.
References getEnvironment().
Here is the call graph for this function:
|
staticprotected |
Definition at line 14 of file SandboxTest.php.
|
staticprotected |
Definition at line 15 of file SandboxTest.php.
Referenced by getEnvironment().