public function testAccept() { $input = new ParseInput(array('a')); $this->assertTrue($input->accept('a')); $this->assertFalse($input->accept('a')); $this->assertNull($input->peek()); }