Example #1
0
 /**
  * @param OpenCloud\ObjectStore\Service $objectStore
  */
 function it_throws_exeption_if_container_creation_fails($objectStore)
 {
     $containerName = 'container-does-not-yet-exist';
     $objectStore->getContainer($containerName)->willThrow(new BadResponseException());
     $objectStore->createContainer($containerName)->willReturn(false);
     $this->beConstructedWith($objectStore, $containerName, true);
     $this->shouldThrow('\\RuntimeException')->duringExists('test');
 }