diff --git a/src/bindings/php/Tests/IntRangeTest.php b/src/bindings/php/Tests/IntRangeTest.php new file mode 100644 index 0000000..ce56fce --- /dev/null +++ b/src/bindings/php/Tests/IntRangeTest.php @@ -0,0 +1,23 @@ +parser = h_int_range(h_uint8(), 3, 10); + } + public function testSuccess() + { + $result = h_parse($this->parser, "\x05"); + $this->assertEquals(5, $result); + } + public function testFailure() + { + $result = h_parse($this->parser, "\xb"); + $this->assertEquals(NULL, $result); + } +} +?> \ No newline at end of file