/** * Tests Target::getMimeType */ public function testSetMimeType() { $path = '/tmp/foo/bar'; $filename = '%Y-test-%d.txt'; $target = new Target($path, $filename, strtotime('2014-12-01 04:30:57')); $target->setMimeType('application/x-tar'); $this->assertEquals('application/x-tar', $target->getMimeType()); }