Пример #1
0
 public function testAccept()
 {
     $input = new ParseInput(array('a'));
     $this->assertTrue($input->accept('a'));
     $this->assertFalse($input->accept('a'));
     $this->assertNull($input->peek());
 }