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