public function testExportsTable()
{
$object = self::$bucket->object(uniqid(self::TESTING_PREFIX));
self::$deletionQueue[] = $object;
$job = self::$table->export($object);
$backoff = new ExponentialBackoff(8);
$backoff->execute(function () use($job) {
$job->reload();
if (!$job->isComplete()) {
throw new \Exception();
}
});
if (!$job->isComplete()) {
$this->fail('Job failed to complete within the allotted time.');
}
$this->assertArrayNotHasKey('errorResult', $job->info()['status']);
}