public function testGetsObjectsWithoutToken()
{
$this->connection->listObjects(Argument::any())->willReturn(['items' => [['name' => 'file.txt']]]);
$bucket = new Bucket($this->connection->reveal(), 'bucket');
$objects = iterator_to_array($bucket->objects());
$this->assertEquals('file.txt', $objects[0]->name());
}