/** * @throws ParseException */ protected function unexpected() { $this->input->error('Unexpected token: ' . json_encode($this->input->peek())); }
/** * @expectedException \Vlaswinkel\Lua\ParseException */ public function testInvalidDoubleBracketCloseString() { $obj = new TokenStream(new InputStream('[==[ test ]== ')); $obj->next(); }