Ejemplo n.º 1
0
 /**
  * @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 . '"');
     }
 }
Ejemplo n.º 2
0
 /**
  * @expectedException \Vlaswinkel\Lua\ParseException
  */
 public function testInvalidDoubleBracketCloseString()
 {
     $obj = new TokenStream(new InputStream('[==[ test ]== '));
     $obj->next();
 }