public function testDoesExistFalse() { $this->connection->getObject(Argument::any())->willThrow(new NotFoundException(null)); $object = new StorageObject($this->connection->reveal(), 'object.txt', 'bucket'); $this->assertFalse($object->exists()); }