public function testHasFail() { $container = $this->getContainerMock(); $container->shouldReceive('getObject')->andThrow('Guzzle\\Http\\Exception\\ClientErrorResponseException'); $adapter = new Rackspace($container); $this->assertFalse($adapter->has('filename.ext')); }
public function testHasNotFound() { $container = $this->getContainerMock(); $container->shouldReceive('getObject')->andThrow('OpenCloud\\ObjectStore\\Exception\\ObjectNotFoundException'); $adapter = new Rackspace($container); $this->assertFalse($adapter->has('filename.ext')); }