Great PHP Symbol Renaming; debug build works, optimised build segfaults. is it gcc? fuck it all and let travis sort it out

This commit is contained in:
Meredith L. Patterson 2013-12-18 00:32:56 +01:00
parent bd48af7b90
commit b9ce12f3b6
40 changed files with 228 additions and 192 deletions

View file

@ -8,23 +8,23 @@ class Int32Test extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->parser = h_int32();
$this->parser = hammer_int32();
}
public function testNegative()
{
$result = h_parse($this->parser, "\xff\xfe\x00\x00");
$result = hammer_parse($this->parser, "\xff\xfe\x00\x00");
$this->assertEquals(-0x20000, $result);
}
public function testPositive()
{
$result = h_parse($this->parser, "\x00\x02\x00\x00");
$result = hammer_parse($this->parser, "\x00\x02\x00\x00");
$this->assertEquals(0x20000, $result);
}
public function testFailure()
{
$result = h_parse($this->parser, "\xff\xfe\x00");
$result = hammer_parse($this->parser, "\xff\xfe\x00");
$this->assertEquals(NULL, $result);
$result = h_parse($this->parser, "\x00\x02\x00");
$result = hammer_parse($this->parser, "\x00\x02\x00");
$this->assertEquals(NULL, $result);
}
}