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