hammer/src/bindings/php/Tests/NotInTest.php
2013-12-22 18:09:24 +01:00

24 lines
No EOL
514 B
PHP

<?php
include_once 'hammer.php';
class NotInTest extends PHPUnit_Framework_TestCase
{
protected $parser;
protected function setUp()
{
$this->parser = h_not_in("abc");
}
public function testSuccess()
{
$result = h_parse($this->parser, "d");
// TODO: fixme when h_ch is fixed
$this->assertEquals(100, $result);
}
public function testFailure()
{
$result = h_parse($this->parser, "b");
$this->assertEquals(NULL, $result);
}
}
?>