TwigTestExtension
extends AbstractExtension
in package
Table of Contents
- __call() : mixed
- __callStatic() : mixed
- br() : mixed
- dynamic_foo() : mixed
- dynamic_path() : mixed
- dynamic_test() : mixed
- escape_and_nl2br() : mixed
- nl2br which also escapes, for testing escaper filters.
- escape_something() : mixed
- getFilters() : array<string|int, TwigFilter>
- Returns a list of filters to add to the existing list.
- getFunctions() : array<string|int, TwigFunction>
- Returns a list of functions to add to the existing list.
- getNodeVisitors() : array<string|int, NodeVisitorInterface>
- Returns the node visitor instances to add to the existing list.
- getOperators() : array<string|int, array<string|int, mixed>>
- Returns a list of operators to add to the existing list.
- getTests() : array<string|int, TwigTest>
- Returns a list of tests to add to the existing list.
- getTokenParsers() : array<string|int, TokenParserInterface>
- Returns the token parser instances to add to the existing list.
- is_multi_word() : mixed
- nl2br() : mixed
- nl2br only, for testing filters with pre_escape.
- preserves_safety() : mixed
- staticCall() : mixed
- §Filter() : mixed
- §Function() : mixed
Methods
__call()
public
__call(mixed $method, mixed $arguments) : mixed
Parameters
- $method : mixed
- $arguments : mixed
Return values
mixed —__callStatic()
public
static __callStatic(mixed $method, mixed $arguments) : mixed
Parameters
- $method : mixed
- $arguments : mixed
Return values
mixed —br()
public
br() : mixed
Return values
mixed —dynamic_foo()
public
dynamic_foo(mixed $foo, mixed $bar, mixed $item) : mixed
Parameters
- $foo : mixed
- $bar : mixed
- $item : mixed
Return values
mixed —dynamic_path()
public
dynamic_path(mixed $element, mixed $item) : mixed
Parameters
- $element : mixed
- $item : mixed
Return values
mixed —dynamic_test()
public
dynamic_test(mixed $element, mixed $item) : mixed
Parameters
- $element : mixed
- $item : mixed
Return values
mixed —escape_and_nl2br()
nl2br which also escapes, for testing escaper filters.
public
escape_and_nl2br(mixed $env, mixed $value[, mixed $sep = '<br />' ]) : mixed
Parameters
- $env : mixed
- $value : mixed
- $sep : mixed = '<br />'
Return values
mixed —escape_something()
public
escape_something(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —getFilters()
Returns a list of filters to add to the existing list.
public
getFilters() : array<string|int, TwigFilter>
Return values
array<string|int, TwigFilter> —getFunctions()
Returns a list of functions to add to the existing list.
public
getFunctions() : array<string|int, TwigFunction>
Return values
array<string|int, TwigFunction> —getNodeVisitors()
Returns the node visitor instances to add to the existing list.
public
getNodeVisitors() : array<string|int, NodeVisitorInterface>
Return values
array<string|int, NodeVisitorInterface> —getOperators()
Returns a list of operators to add to the existing list.
public
getOperators() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>> —First array of unary operators, second array of binary operators
getTests()
Returns a list of tests to add to the existing list.
public
getTests() : array<string|int, TwigTest>
Return values
array<string|int, TwigTest> —getTokenParsers()
Returns the token parser instances to add to the existing list.
public
getTokenParsers() : array<string|int, TokenParserInterface>
Return values
array<string|int, TokenParserInterface> —is_multi_word()
public
is_multi_word(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —nl2br()
nl2br only, for testing filters with pre_escape.
public
nl2br(mixed $value[, mixed $sep = '<br />' ]) : mixed
Parameters
- $value : mixed
- $sep : mixed = '<br />'
Return values
mixed —preserves_safety()
public
preserves_safety(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —staticCall()
public
static staticCall(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —§Filter()
public
§Filter(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —§Function()
public
§Function(mixed $value) : mixed
Parameters
- $value : mixed