diff --git a/tests/phpTest.php b/tests/phpTest.php index ab41121ce..0afc0af7f 100644 --- a/tests/phpTest.php +++ b/tests/phpTest.php @@ -79,9 +79,6 @@ function main() fuzzTest1($assert); // testUnicode($assert); - - testAnyBuffer($assert); - echo 'FlatBuffers php test: completed successfully' . PHP_EOL; } @@ -600,19 +597,6 @@ function testByteBuffer(Assert $assert) { } -function testAnyBuffer(Assert $assert) -{ -// PHP needs double quote. for now, use Fred directly -// $js = json_decode(file_get_contents('monsterdata_test.json'), true); - $data = file_get_contents('monsterdata_test.mon'); - $bb = Google\FlatBuffers\ByteBuffer::wrap($data); - $mons = \MyGame\Example\Monster::getRootAsMonster($bb); - $indirect_monster = new \MyGame\Example\Monster(); - $assert->Equal($mons->getTestType(), \MyGame\Example\Any::Monster); - $mons->getTest($indirect_monster); - $assert->Equal("Fred", $indirect_monster->getName()); -} - class Assert { public function ok($result, $message = "") { if (!$result){