Example #1
0
 /**
  * @dataProvider provideTestHaltCompiler
  */
 public function testHandleHaltCompiler($code, $remaining)
 {
     $this->lexer->startLexing($code);
     while (Parser::T_HALT_COMPILER !== $this->lexer->getNextToken()) {
     }
     $this->assertEquals($this->lexer->handleHaltCompiler(), $remaining);
     $this->assertEquals(0, $this->lexer->getNextToken());
 }