PhpParser\LexerTest::testHandleHaltCompilerError PHP Method

testHandleHaltCompilerError() public method

    public function testHandleHaltCompilerError()
    {
        $lexer = $this->getLexer();
        $lexer->startLexing('<?php ... __halt_compiler invalid ();');
        while (Tokens::T_HALT_COMPILER !== $lexer->getNextToken()) {
        }
        $lexer->handleHaltCompiler();
    }