public function testDoesExistTrue() { $this->connection->getObject(Argument::any())->willReturn(['name' => 'object.txt']); $object = new StorageObject($this->connection->reveal(), 'object.txt', 'bucket'); $this->assertTrue($object->exists()); }