PHP Class Contao\CoreBundle\Test\Contao\StringUtilTest

Author: Martin Auswöger ([email protected])
Inheritance: extends Contao\CoreBundle\Test\TestCase
Datei anzeigen Open project: contao/core-bundle

Public Methods

Method Description
parseSimpleTokensCorrectNewlines ( ) : array Provides the data for the testParseSimpleTokensCorrectNewlines() method.
parseSimpleTokensDoesntExecutePhp ( ) : array Provides the data for the testParseSimpleTokens() method.
parseSimpleTokensDoesntExecutePhpInToken ( ) : array Provides the data for the testParseSimpleTokens() method.
parseSimpleTokensInvalidComparison ( ) : array Provides the data for the testParseSimpleTokens() method.
parseSimpleTokensProvider ( ) : array Provides the data for the testParseSimpleTokens() method.
setUpBeforeClass ( )
testParseSimpleTokens ( string $string, array $tokens, string $expected ) Tests the parseSimpleTokens() method.
testParseSimpleTokensCorrectNewlines ( string $string, array $tokens, string $expected ) Tests that the parseSimpleTokens() method works correctly with newlines.
testParseSimpleTokensDoesntExecutePhp ( string $string ) Tests that the parseSimpleTokens() method does not execute PHP code.
testParseSimpleTokensDoesntExecutePhpInCombinedToken ( ) Tests that the parseSimpleTokens() method does not execute PHP code when tokens contain PHP code that is generated only after replacing the tokens.
testParseSimpleTokensDoesntExecutePhpInToken ( array $tokens ) Tests that the parseSimpleTokens() method does not execute PHP code inside tokens.
testParseSimpleTokensInvalidComparison ( $string ) Tests that the parseSimpleTokens() method fails for invalid comparisons.

Protected Methods

Method Description
setUp ( )

Method Details

parseSimpleTokensCorrectNewlines() public method

Provides the data for the testParseSimpleTokensCorrectNewlines() method.

parseSimpleTokensDoesntExecutePhp() public method

Provides the data for the testParseSimpleTokens() method.

parseSimpleTokensDoesntExecutePhpInToken() public method

Provides the data for the testParseSimpleTokens() method.

parseSimpleTokensInvalidComparison() public method

Provides the data for the testParseSimpleTokens() method.

parseSimpleTokensProvider() public method

Provides the data for the testParseSimpleTokens() method.
public parseSimpleTokensProvider ( ) : array
return array

setUp() protected method

protected setUp ( )

setUpBeforeClass() public static method

public static setUpBeforeClass ( )

testParseSimpleTokens() public method

Tests the parseSimpleTokens() method.
public testParseSimpleTokens ( string $string, array $tokens, string $expected )
$string string
$tokens array
$expected string

testParseSimpleTokensCorrectNewlines() public method

Tests that the parseSimpleTokens() method works correctly with newlines.
public testParseSimpleTokensCorrectNewlines ( string $string, array $tokens, string $expected )
$string string
$tokens array
$expected string

testParseSimpleTokensDoesntExecutePhp() public method

Tests that the parseSimpleTokens() method does not execute PHP code.

testParseSimpleTokensDoesntExecutePhpInCombinedToken() public method

Tests that the parseSimpleTokens() method does not execute PHP code when tokens contain PHP code that is generated only after replacing the tokens.

testParseSimpleTokensDoesntExecutePhpInToken() public method

Tests that the parseSimpleTokens() method does not execute PHP code inside tokens.

testParseSimpleTokensInvalidComparison() public method

Tests that the parseSimpleTokens() method fails for invalid comparisons.
public testParseSimpleTokensInvalidComparison ( $string )
$string