From 282c42139db54d5760bce8017bed4337ddeaadbc Mon Sep 17 00:00:00 2001
From: "Meredith L. Patterson" <mlp@thesmartpolitenerd.com>
Date: Sun, 24 Nov 2013 20:30:19 -0600
Subject: [PATCH] ChTest and ChRangeTest fail only because their result isn't
 being coerced to string.

---
 src/bindings/php/Tests/ChRangeTest.php | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 src/bindings/php/Tests/ChRangeTest.php

diff --git a/src/bindings/php/Tests/ChRangeTest.php b/src/bindings/php/Tests/ChRangeTest.php
new file mode 100644
index 00000000..b726a5dc
--- /dev/null
+++ b/src/bindings/php/Tests/ChRangeTest.php
@@ -0,0 +1,24 @@
+<?php
+
+include_once 'hammer.php';
+
+class ChRangeTest extends PHPUnit_Framework_TestCase 
+{
+    protected $parser;
+
+    protected function setUp() 
+    {
+        $this->parser = h_ch_range("a", "c");
+    }
+    public function testSuccess() 
+    {
+        $result = h_parse($this->parser, "b");
+        $this->assertEquals("b", $result);
+    }     
+    public function testFailure()
+    {
+        $result = h_parse($this->parser, "d");
+        $this->assertEquals(NULL, $result);
+    }
+}
+?>
\ No newline at end of file
-- 
GitLab