PHP Класс Contao\CoreBundle\Test\Contao\StringUtilTest

Автор: Martin Auswöger ([email protected])
Наследование: extends Contao\CoreBundle\Test\TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
setUp ( )

Описание методов

parseSimpleTokensCorrectNewlines() публичный Метод

Provides the data for the testParseSimpleTokensCorrectNewlines() method.
public parseSimpleTokensCorrectNewlines ( ) : array
Результат array

parseSimpleTokensDoesntExecutePhp() публичный Метод

Provides the data for the testParseSimpleTokens() method.
public parseSimpleTokensDoesntExecutePhp ( ) : array
Результат array

parseSimpleTokensDoesntExecutePhpInToken() публичный Метод

Provides the data for the testParseSimpleTokens() method.
public parseSimpleTokensDoesntExecutePhpInToken ( ) : array
Результат array

parseSimpleTokensInvalidComparison() публичный Метод

Provides the data for the testParseSimpleTokens() method.
public parseSimpleTokensInvalidComparison ( ) : array
Результат array

parseSimpleTokensProvider() публичный Метод

Provides the data for the testParseSimpleTokens() method.
public parseSimpleTokensProvider ( ) : array
Результат array

setUp() защищенный Метод

protected setUp ( )

setUpBeforeClass() публичный статический Метод

public static setUpBeforeClass ( )

testParseSimpleTokens() публичный Метод

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

testParseSimpleTokensCorrectNewlines() публичный Метод

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

testParseSimpleTokensDoesntExecutePhp() публичный Метод

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() публичный Метод

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

testParseSimpleTokensInvalidComparison() публичный Метод

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