need to coerce HBytes to PHP string, but this seems to be looking for an object of HBytes class
This commit is contained in:
parent
8be21c3d28
commit
12d93a315d
1 changed files with 2 additions and 1 deletions
|
|
@ -13,7 +13,8 @@ class TestHammer extends PHPUnit_Framework_TestCase
|
||||||
public function testSuccess()
|
public function testSuccess()
|
||||||
{
|
{
|
||||||
$result = hammer::h_parse($this->parser, "95\xa2", 3);
|
$result = hammer::h_parse($this->parser, "95\xa2", 3);
|
||||||
$this->assertEquals($result->ast->token_data->bytes, "95\xa2");
|
var_dump($result);
|
||||||
|
$this->assertEquals($result->__get("ast")->__get("token_data")->__get("bytes"), "95\xa2");
|
||||||
}
|
}
|
||||||
public function testFailure()
|
public function testFailure()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue