PHP Class PhpParser\LexerTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: nikic/php-parser

Public Methods

Method Description
provideTestError ( )
provideTestHaltCompiler ( )
provideTestLex ( )
testError ( $code, $messages )
testGetTokens ( )
testHandleHaltCompiler ( $code, $remaining )
testHandleHaltCompilerError ( )
testLex ( $code, $options, $tokens )

Protected Methods

Method Description
getLexer ( array $options = [] ) * To allow overwriting in parent class

Method Details

getLexer() protected method

* To allow overwriting in parent class
protected getLexer ( array $options = [] )
$options array

provideTestError() public method

public provideTestError ( )

provideTestHaltCompiler() public method

provideTestLex() public method

public provideTestLex ( )

testError() public method

public testError ( $code, $messages )

testGetTokens() public method

public testGetTokens ( )

testHandleHaltCompiler() public method

public testHandleHaltCompiler ( $code, $remaining )

testHandleHaltCompilerError() public method

testLex() public method

public testLex ( $code, $options, $tokens )