PHP 클래스 Contao\CoreBundle\Test\Contao\StringUtilTest

저자: Martin Auswöger ([email protected])
파일 보기 프로젝트 열기: contao/core-bundle

공개 메소드들

메소드 설명
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.

parseSimpleTokensDoesntExecutePhp() 공개 메소드

Provides the data for the testParseSimpleTokens() method.

parseSimpleTokensDoesntExecutePhpInToken() 공개 메소드

Provides the data for the testParseSimpleTokens() method.

parseSimpleTokensInvalidComparison() 공개 메소드

Provides the data for the testParseSimpleTokens() method.

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