(PHP) remove duplicate test

This commit is contained in:
Shuhei Tanuma 2015-12-24 15:50:03 +09:00
parent 7fbd9b8de4
commit 4691558ee3
1 changed files with 0 additions and 16 deletions

View File

@ -79,9 +79,6 @@ function main()
fuzzTest1($assert); fuzzTest1($assert);
// testUnicode($assert); // testUnicode($assert);
testAnyBuffer($assert);
echo 'FlatBuffers php test: completed successfully' . PHP_EOL; 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 { class Assert {
public function ok($result, $message = "") { public function ok($result, $message = "") {
if (!$result){ if (!$result){