Beispiel #1
0
 /**
  * Returns the file MIME type.
  *
  * @param string $path
  *
  * @return array|false|null|string
  */
 public function getMimeType($path)
 {
     $ext = pathinfo($path, PATHINFO_EXTENSION);
     $mimeType = MimeType::detectByFileExtension($ext);
     return $mimeType ? array('mimetype' => $mimeType) : parent::getMimetype($path);
 }
 public function testGetUploadBuilder()
 {
     $mock = $this->getS3Client();
     $adapter = new Adapter($mock, 'bucket');
     $this->assertInstanceOf('Aws\\S3\\Model\\MultipartUpload\\UploadBuilder', $adapter->getUploadBuilder());
 }