PHP Class Phlexy\Lexer\TestAbstract

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: nikic/phlexy Class Usage Examples

Public Methods

Method Description
createLexerFactory ( ) : Phlexy\LexerFactory
getStatefulTests ( )
getTestsWithCapturingGroups ( )
getTestsWithoutCapturingGroups ( )
provideTestLexing ( ) : array
provideTestLexingException ( )
testLexing ( array $lexerDefinition, $additionalModifiers, array $inputsToExpectedOutputsMap )
testLexingException ( array $lexerDefinition, $input, $expectedExceptionMessage )

Protected Methods

Method Description
statelessTestsToStateful ( array $tests )

Method Details

createLexerFactory() abstract public method

abstract public createLexerFactory ( ) : Phlexy\LexerFactory
return Phlexy\LexerFactory

getStatefulTests() public method

public getStatefulTests ( )

getTestsWithCapturingGroups() public method

getTestsWithoutCapturingGroups() public method

provideTestLexing() abstract public method

abstract public provideTestLexing ( ) : array
return array

provideTestLexingException() public method

statelessTestsToStateful() protected method

protected statelessTestsToStateful ( array $tests )
$tests array

testLexing() public method

public testLexing ( array $lexerDefinition, $additionalModifiers, array $inputsToExpectedOutputsMap )
$lexerDefinition array
$inputsToExpectedOutputsMap array

testLexingException() public method

public testLexingException ( array $lexerDefinition, $input, $expectedExceptionMessage )
$lexerDefinition array