PHP Class Contao\CoreBundle\Test\Contao\StringUtilTest

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
setUp ( )

Method Details

parseSimpleTokensCorrectNewlines() public méthode

Provides the data for the testParseSimpleTokensCorrectNewlines() method.

parseSimpleTokensDoesntExecutePhp() public méthode

Provides the data for the testParseSimpleTokens() method.

parseSimpleTokensDoesntExecutePhpInToken() public méthode

Provides the data for the testParseSimpleTokens() method.

parseSimpleTokensInvalidComparison() public méthode

Provides the data for the testParseSimpleTokens() method.

parseSimpleTokensProvider() public méthode

Provides the data for the testParseSimpleTokens() method.
public parseSimpleTokensProvider ( ) : array
Résultat array

setUp() protected méthode

protected setUp ( )

setUpBeforeClass() public static méthode

public static setUpBeforeClass ( )

testParseSimpleTokens() public méthode

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

testParseSimpleTokensCorrectNewlines() public méthode

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 méthode

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

testParseSimpleTokensDoesntExecutePhpInCombinedToken() public méthode

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 méthode

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

testParseSimpleTokensInvalidComparison() public méthode

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