コード例 #1
0
 public function testIsStoredChecksObjectExistence()
 {
     $s3 = $this->createAmazonS3Mock();
     $s3->expects($this->once())->method('if_object_exists')->will($this->returnValue(false));
     $resolver = new AmazonS3Resolver($s3, 'images.example.com');
     $this->assertFalse($resolver->isStored('/some-folder/path.jpg', 'thumb'));
 }