コード例 #1
0
ファイル: AwsS3ResolverTest.php プロジェクト: raphydev/onep
 public function testIsStoredChecksObjectExistence()
 {
     $s3 = $this->getS3ClientMock();
     $s3->expects($this->once())->method('doesObjectExist')->will($this->returnValue(false));
     $resolver = new AwsS3Resolver($s3, 'images.example.com');
     $this->assertFalse($resolver->isStored('/some-folder/path.jpg', 'thumb'));
 }