setMime() public method

Set the file mime type.
public setMime ( string $mime ) : File
$mime string
return File
Example #1
0
 public function testSetMimeException()
 {
     $this->setExpectedException('Pop\\File\\Exception');
     $f = new File('accesslog.txt');
     $f->setMime('bad/mime');
 }