Exemple #1
0
 /**
  * Tests Tar::getCommandLine
  */
 public function testCompressionShowStdErr()
 {
     $path = realpath(__DIR__ . '/../../../_files/bin');
     $dir = sys_get_temp_dir();
     $tar = new Tar($path);
     $tar->archiveDirectory($dir)->archiveTo('/tmp/foo.tar.bzip2')->useCompression('bzip2')->showStdErr(true);
     $this->assertEquals($path . '/tar -jcf \'/tmp/foo.tar.bzip2\' -C \'' . $dir . '\' \'.\'', $tar->getCommandLine());
 }