diff --git a/src/bindings/php/Tests/DifferenceTest.php b/src/bindings/php/Tests/DifferenceTest.php new file mode 100644 index 0000000..88c1903 --- /dev/null +++ b/src/bindings/php/Tests/DifferenceTest.php @@ -0,0 +1,25 @@ +parser = h_difference(h_token("ab"), ch("a")); + } + + public function testSuccess() + { + $result = h_parse($this->parser, "ab"); + $this->assertEquals("ab", $result); + } + + public function testFailure() + { + $result = h_parse($this->parser, "a"); + $this->assertEquals(NULL, $result); + } +} +?> \ No newline at end of file