예제 #1
0
 /**
  * Tests Target::getMimeType
  */
 public function testGetMimeTypeCompressed()
 {
     $path = '/tmp/foo/bar';
     $filename = '%Y-test-%d.txt';
     $target = new Target($path, $filename, strtotime('2014-12-01 04:30:57'));
     $target->setCompressor($this->getCompressorMockForCmd('zip', 'zip', 'application/zip'));
     $this->assertEquals('application/zip', $target->getMimeType());
 }