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