Documentation

Twig_Tests_ExpressionParserTest extends TestCase
in package

Table of Contents

getFailingTestsForArray()  : mixed
getFailingTestsForAssignment()  : mixed
getMacroDefinitionDoesNotSupportNonConstantDefaultValues()  : mixed
getMacroDefinitionSupportsConstantDefaultValues()  : mixed
getTestsForArray()  : mixed
getTestsForString()  : mixed
testArrayExpression()  : mixed
testArraySyntaxError()  : mixed
testAttributeCallDoesNotSupportNamedArguments()  : mixed
testCanOnlyAssignToNames()  : mixed
testMacroCallDoesNotSupportNamedArguments()  : mixed
testMacroDefinitionDoesNotSupportNonConstantDefaultValues()  : mixed
testMacroDefinitionDoesNotSupportNonNameVariableName()  : mixed
testMacroDefinitionSupportsConstantDefaultValues()  : mixed
testStringExpression()  : mixed
testStringExpressionDoesNotConcatenateTwoConsecutiveStrings()  : mixed
testUnknownFilter()  : mixed
testUnknownFilterWithoutSuggestions()  : mixed
testUnknownFunction()  : mixed
testUnknownFunctionWithoutSuggestions()  : mixed
testUnknownTest()  : mixed
testUnknownTestWithoutSuggestions()  : mixed

Methods

getFailingTestsForArray()

public getFailingTestsForArray() : mixed
Return values
mixed

getFailingTestsForAssignment()

public getFailingTestsForAssignment() : mixed
Return values
mixed

getMacroDefinitionDoesNotSupportNonConstantDefaultValues()

public getMacroDefinitionDoesNotSupportNonConstantDefaultValues() : mixed
Return values
mixed

getMacroDefinitionSupportsConstantDefaultValues()

public getMacroDefinitionSupportsConstantDefaultValues() : mixed
Return values
mixed

testArrayExpression()

public testArrayExpression(mixed $template, mixed $expected) : mixed
Parameters
$template : mixed
$expected : mixed
Tags
dataProvider

getTestsForArray

Return values
mixed

testArraySyntaxError()

public testArraySyntaxError(mixed $template) : mixed
Parameters
$template : mixed
Tags
expectedException

\Twig\Error\SyntaxError

dataProvider

getFailingTestsForArray

Return values
mixed

testAttributeCallDoesNotSupportNamedArguments()

public testAttributeCallDoesNotSupportNamedArguments() : mixed
Tags
expectedException

\Twig\Error\SyntaxError

Return values
mixed

testCanOnlyAssignToNames()

public testCanOnlyAssignToNames(mixed $template) : mixed
Parameters
$template : mixed
Tags
expectedException

\Twig\Error\SyntaxError

dataProvider

getFailingTestsForAssignment

Return values
mixed

testMacroCallDoesNotSupportNamedArguments()

public testMacroCallDoesNotSupportNamedArguments() : mixed
Tags
expectedException

\Twig\Error\SyntaxError

Return values
mixed

testMacroDefinitionDoesNotSupportNonConstantDefaultValues()

public testMacroDefinitionDoesNotSupportNonConstantDefaultValues(mixed $template) : mixed
Parameters
$template : mixed
Tags
expectedException

\Twig\Error\SyntaxError

expectedExceptionMessage

A default value for an argument must be a constant (a boolean, a string, a number, or an array) in "index" at line 1

dataProvider

getMacroDefinitionDoesNotSupportNonConstantDefaultValues

Return values
mixed

testMacroDefinitionDoesNotSupportNonNameVariableName()

public testMacroDefinitionDoesNotSupportNonNameVariableName() : mixed
Tags
expectedException

\Twig\Error\SyntaxError

expectedExceptionMessage

An argument must be a name. Unexpected token "string" of value "a" ("name" expected) in "index" at line 1.

Return values
mixed

testMacroDefinitionSupportsConstantDefaultValues()

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

getMacroDefinitionSupportsConstantDefaultValues

Return values
mixed

testStringExpression()

public testStringExpression(mixed $template, mixed $expected) : mixed
Parameters
$template : mixed
$expected : mixed
Tags
dataProvider

getTestsForString

Return values
mixed

testStringExpressionDoesNotConcatenateTwoConsecutiveStrings()

public testStringExpressionDoesNotConcatenateTwoConsecutiveStrings() : mixed
Tags
expectedException

\Twig\Error\SyntaxError

Return values
mixed

testUnknownFilter()

public testUnknownFilter() : mixed
Tags
expectedException

\Twig\Error\SyntaxError

expectedExceptionMessage

Unknown "lowe" filter. Did you mean "lower" in "index" at line 1?

Return values
mixed

testUnknownFilterWithoutSuggestions()

public testUnknownFilterWithoutSuggestions() : mixed
Tags
expectedException

\Twig\Error\SyntaxError

expectedExceptionMessage

Unknown "foobar" filter in "index" at line 1.

Return values
mixed

testUnknownFunction()

public testUnknownFunction() : mixed
Tags
expectedException

\Twig\Error\SyntaxError

expectedExceptionMessage

Unknown "cycl" function. Did you mean "cycle" in "index" at line 1?

Return values
mixed

testUnknownFunctionWithoutSuggestions()

public testUnknownFunctionWithoutSuggestions() : mixed
Tags
expectedException

\Twig\Error\SyntaxError

expectedExceptionMessage

Unknown "foobar" function in "index" at line 1.

Return values
mixed

testUnknownTest()

public testUnknownTest() : mixed
Tags
expectedException

\Twig\Error\SyntaxError

expectedExceptionMessage

Unknown "nul" test. Did you mean "null" in "index" at line 1

Return values
mixed

testUnknownTestWithoutSuggestions()

public testUnknownTestWithoutSuggestions() : mixed
Tags
expectedException

\Twig\Error\SyntaxError

expectedExceptionMessage

Unknown "foobar" test in "index" at line 1.

Return values
mixed

Search results