/** * @param string|null $char * * @throws ParseException */ protected function skipPunctuation($char = null) { if ($this->isPunctuation($char)) { $this->input->next(); } else { $this->input->error('Expecting punctuation: "' . $char . '"'); } }
/** * @expectedException \Vlaswinkel\Lua\ParseException */ public function testInvalidDoubleBracketCloseString() { $obj = new TokenStream(new InputStream('[==[ test ]== ')); $obj->next(); }