Exemplo n.º 1
0
 /**
  * @param \AmazonS3 $service
  */
 function it_allows_to_configure_region_for_bucket($service)
 {
     $service->set_region(Argument::any())->shouldBeCalled();
     $service->if_bucket_exists('bucketName')->willReturn(false);
     $service->create_bucket('bucketName', \AmazonS3::REGION_EU_W1)->shouldBeCalled()->willReturn(new \CFResponse(array(), 'created', 201));
     $service->if_object_exists('bucketName', 'filename')->willReturn(false);
     $this->beConstructedWith($service, 'bucketName', array('create' => true, 'region' => \AmazonS3::REGION_EU_W1));
     $this->exists('filename');
 }