ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 PHPMailer\PHPMailer\$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().
|
protected |
Definition at line 17 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params.
Twig_Tests_Extension_SandboxTest::testMacrosInASandbox | ( | ) |
Definition at line 250 of file SandboxTest.php.
References EOF, getEnvironment(), and test().
Twig_Tests_Extension_SandboxTest::testSandboxAllowFilter | ( | ) |
Definition at line 183 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxAllowFunction | ( | ) |
Definition at line 201 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxAllowFunctionsCaseInsensitive | ( | ) |
Definition at line 213 of file SandboxTest.php.
References FooObject\$called, $name, PHPMailer\PHPMailer\$params, getEnvironment(), and FooObject\reset().
Twig_Tests_Extension_SandboxTest::testSandboxAllowMethodFoo | ( | ) |
Definition at line 159 of file SandboxTest.php.
References FooObject\$called, PHPMailer\PHPMailer\$params, getEnvironment(), and FooObject\reset().
Twig_Tests_Extension_SandboxTest::testSandboxAllowMethodToString | ( | ) |
Definition at line 167 of file SandboxTest.php.
References FooObject\$called, PHPMailer\PHPMailer\$params, getEnvironment(), and FooObject\reset().
Twig_Tests_Extension_SandboxTest::testSandboxAllowMethodToStringDisabled | ( | ) |
Definition at line 175 of file SandboxTest.php.
References FooObject\$called, PHPMailer\PHPMailer\$params, getEnvironment(), and FooObject\reset().
Twig_Tests_Extension_SandboxTest::testSandboxAllowProperty | ( | ) |
Definition at line 195 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxAllowRangeOperator | ( | ) |
Definition at line 207 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxAllowTag | ( | ) |
Definition at line 189 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxDisabledAfterIncludeFunctionError | ( | ) |
Definition at line 264 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxGloballySet | ( | ) |
Definition at line 53 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxLocallySetForAnInclude | ( | ) |
Definition at line 225 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxUnallowedFilter | ( | ) |
Definition at line 72 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxUnallowedFunction | ( | ) |
Definition at line 135 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxUnallowedMethodAccessor | ( | ) |
Definition at line 59 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxUnallowedProperty | ( | ) |
Definition at line 96 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxUnallowedRangeOperator | ( | ) |
Definition at line 147 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxUnallowedTag | ( | ) |
Definition at line 84 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxUnallowedToString | ( | ) |
Definition at line 109 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
Twig_Tests_Extension_SandboxTest::testSandboxUnallowedToStringArray | ( | ) |
Definition at line 122 of file SandboxTest.php.
References PHPMailer\PHPMailer\$params, and getEnvironment().
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().
|
staticprotected |
Definition at line 14 of file SandboxTest.php.
|
staticprotected |
Definition at line 15 of file SandboxTest.php.
Referenced by getEnvironment().