getMimeType() public method

Returns mimetype metadata value if set, otherwise attempts to detect it.
public getMimeType ( ) : string
return string
Exemplo 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());
 }