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