public function testGetsTablesWithToken()
{
$this->connection->listTables(Argument::any())->willReturn(['nextPageToken' => 'token', 'tables' => [['tableReference' => ['tableId' => 'someOthertableId']]]], ['tables' => [['tableReference' => ['tableId' => $this->tableId]]]])->shouldBeCalledTimes(2);
$dataset = $this->getDataset($this->connection);
$tables = iterator_to_array($dataset->tables());
$this->assertEquals($this->tableId, $tables[1]->id());
}