Commit 4691558e authored by Shuhei Tanuma's avatar Shuhei Tanuma

(PHP) remove duplicate test

parent 7fbd9b8d
......@@ -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){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment