예제 #1
0
 public function testGetCurrentTokenShouldThrowNoTokenAtIndex()
 {
     $this->expectException(Aegis\NoTokenAtIndex::class);
     $stream = new TokenStream();
     $parser = new Parser();
     $parser->parse($stream);
     $parser->getCurrentToken();
 }