Skip to content
Snippets Groups Projects
Commit 282c4213 authored by Meredith L. Patterson's avatar Meredith L. Patterson
Browse files

ChTest and ChRangeTest fail only because their result isn't being coerced to string.

parent 05cdf766
No related branches found
No related tags found
No related merge requests found
<?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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment