diff --git a/src/bindings/php/Tests/EndTest.php b/src/bindings/php/Tests/EndTest.php new file mode 100644 index 0000000..b3fc6c6 --- /dev/null +++ b/src/bindings/php/Tests/EndTest.php @@ -0,0 +1,24 @@ +parser = h_sequence(h_ch("a"), h_end_p()); + } + public function testSuccess() + { + $result = h_parse($this->parser, "a"); + // TODO: fixme when h_ch is fixed + $this->assertEquals(98, $result); + } + public function testFailure() + { + $result = h_parse($this->parser, "aa"); + $this->assertEquals(NULL, $result); + } +} +?> \ No newline at end of file