getMimeType() public method

Returns mimetype metadata value if set, otherwise attempts to detect it.
public getMimeType ( ) : string
return string
Ejemplo n.º 1
0
 /**
  * @group FileService
  */
 public function testCanSetMimeType()
 {
     unset($this->file->mimetype);
     $mimetype = 'application/plain';
     $this->file->setMimeType($mimetype);
     $this->assertEquals($mimetype, $this->file->getMimeType());
 }