/mnt/hdd/osrm/build/flatbuffers-build/tests
Edit: /mnt/hdd/osrm/build/flatbuffers-build/tests/phpUnionVectorTest.php (3906B)
dataBuffer()->data());
$movie = Movie::getRootAsMovie($buf);
$assert->strictEqual($movie->getCharactersTypeLength(), count($charTypes));
$assert->strictEqual($movie->getCharactersLength(), $movie->getCharactersTypeLength());
for ($i = 0; $i < count($charTypes); ++$i) {
$assert->strictEqual($movie->getCharactersType($i), $charTypes[$i]);
}
$bookReader7 = $movie->getCharacters(0, new BookReader());
$assert->strictEqual($bookReader7->getBooksRead(), 7);
$attacker = $movie->getCharacters(1, new Attacker());
$assert->strictEqual($attacker->getSwordAttackDamage(), 5);
$bookReader2 = $movie->getCharacters(2, new BookReader());
$assert->strictEqual($bookReader2->getBooksRead(), 2);
}
try {
main();
exit(0);
} catch(Exception $e) {
printf("Fatal error: Uncaught exception '%s' with message '%s. in %s:%d\n", get_class($e), $e->getMessage(), $e->getFile(), $e->getLine());
printf("Stack trace:\n");
echo $e->getTraceAsString() . PHP_EOL;
printf(" thrown in in %s:%d\n", $e->getFile(), $e->getLine());
die(-1);
}