Documentation

Twig_Tests_Extension_SandboxTest extends TestCase
in package

Table of Contents

$params  : mixed
$templates  : mixed
getSandboxAllowedToStringTests()  : mixed
getSandboxUnallowedToStringTests()  : mixed
testMacrosInASandbox()  : mixed
testSandboxAllowedToString()  : mixed
testSandboxAllowFilter()  : mixed
testSandboxAllowFunction()  : mixed
testSandboxAllowFunctionsCaseInsensitive()  : mixed
testSandboxAllowMethodFoo()  : mixed
testSandboxAllowMethodToString()  : mixed
testSandboxAllowMethodToStringDisabled()  : mixed
testSandboxAllowProperty()  : mixed
testSandboxAllowRangeOperator()  : mixed
testSandboxAllowTag()  : mixed
testSandboxDisabledAfterIncludeFunctionError()  : mixed
testSandboxGloballySet()  : mixed
testSandboxLocallySetForAnInclude()  : mixed
testSandboxUnallowedFilter()  : mixed
testSandboxUnallowedFunction()  : mixed
testSandboxUnallowedMethodAccessor()  : mixed
testSandboxUnallowedProperty()  : mixed
testSandboxUnallowedRangeOperator()  : mixed
testSandboxUnallowedTag()  : mixed
testSandboxUnallowedToString()  : mixed
testSandboxWithInheritance()  : mixed
getEnvironment()  : mixed
setUp()  : mixed

Properties

Methods

getSandboxAllowedToStringTests()

public getSandboxAllowedToStringTests() : mixed
Return values
mixed

getSandboxUnallowedToStringTests()

public getSandboxUnallowedToStringTests() : mixed
Return values
mixed

testMacrosInASandbox()

public testMacrosInASandbox() : mixed
Return values
mixed

testSandboxAllowedToString()

public testSandboxAllowedToString(mixed $template, mixed $output) : mixed
Parameters
$template : mixed
$output : mixed
Tags
dataProvider

getSandboxAllowedToStringTests

Return values
mixed

testSandboxAllowFilter()

public testSandboxAllowFilter() : mixed
Return values
mixed

testSandboxAllowFunction()

public testSandboxAllowFunction() : mixed
Return values
mixed

testSandboxAllowFunctionsCaseInsensitive()

public testSandboxAllowFunctionsCaseInsensitive() : mixed
Return values
mixed

testSandboxAllowMethodFoo()

public testSandboxAllowMethodFoo() : mixed
Return values
mixed

testSandboxAllowMethodToString()

public testSandboxAllowMethodToString() : mixed
Return values
mixed

testSandboxAllowMethodToStringDisabled()

public testSandboxAllowMethodToStringDisabled() : mixed
Return values
mixed

testSandboxAllowProperty()

public testSandboxAllowProperty() : mixed
Return values
mixed

testSandboxAllowRangeOperator()

public testSandboxAllowRangeOperator() : mixed
Return values
mixed

testSandboxAllowTag()

public testSandboxAllowTag() : mixed
Return values
mixed

testSandboxDisabledAfterIncludeFunctionError()

public testSandboxDisabledAfterIncludeFunctionError() : mixed
Return values
mixed

testSandboxGloballySet()

public testSandboxGloballySet() : mixed
Return values
mixed

testSandboxLocallySetForAnInclude()

public testSandboxLocallySetForAnInclude() : mixed
Return values
mixed

testSandboxUnallowedFilter()

public testSandboxUnallowedFilter() : mixed
Return values
mixed

testSandboxUnallowedFunction()

public testSandboxUnallowedFunction() : mixed
Return values
mixed

testSandboxUnallowedMethodAccessor()

public testSandboxUnallowedMethodAccessor() : mixed
Return values
mixed

testSandboxUnallowedProperty()

public testSandboxUnallowedProperty() : mixed
Return values
mixed

testSandboxUnallowedRangeOperator()

public testSandboxUnallowedRangeOperator() : mixed
Return values
mixed

testSandboxUnallowedTag()

public testSandboxUnallowedTag() : mixed
Return values
mixed

testSandboxUnallowedToString()

public testSandboxUnallowedToString(mixed $template) : mixed
Parameters
$template : mixed
Tags
dataProvider

getSandboxUnallowedToStringTests

Return values
mixed

testSandboxWithInheritance()

public testSandboxWithInheritance() : mixed
Tags
expectedException

\Twig\Sandbox\SecurityError

expectedExceptionMessage

Filter "json_encode" is not allowed in "1_child" at line 3.

Return values
mixed

getEnvironment()

protected getEnvironment(mixed $sandboxed, mixed $options, mixed $templates[, mixed $tags = [] ][, mixed $filters = [] ][, mixed $methods = [] ][, mixed $properties = [] ][, mixed $functions = [] ]) : mixed
Parameters
$sandboxed : mixed
$options : mixed
$templates : mixed
$tags : mixed = []
$filters : mixed = []
$methods : mixed = []
$properties : mixed = []
$functions : mixed = []
Return values
mixed

setUp()

protected setUp() : mixed
Return values
mixed

Search results