parser = h_right(ch(" "), ch("a")); } public function testSuccess() { $result = h_parse($this->parser, " a"); $this->assertEquals("a", $result); } public function testFailure() { $result1 = h_parse($this->parser, "a"); $result2 = h_parse($this->parser, " "); $result3 = h_parse($this->parser, "ba"); $this->assertEquals(NULL, $result1); $this->assertEquals(NULL, $result2); $this->assertEquals(NULL, $result3); } } ?>