예제 #1
0
 /**
  * Tests Tar::handlesCompression
  */
 public function testHandlesCompression()
 {
     $path = realpath(__DIR__ . '/../../../_files/bin');
     $tar = new Tar($path);
     $this->assertFalse($tar->handlesCompression());
     $tar->useCompression('zip');
     $this->assertFalse($tar->handlesCompression());
     $tar->useCompression('gzip');
     $this->assertTrue($tar->handlesCompression());
 }