/**
  * Tests extracting bzip2.
  *
  * @return  void
  *
  * @covers  Joomla\Archive\Archive::extract
  * @since   1.0
  */
 public function testExtractBzip2()
 {
     if (!is_dir($this->outputPath)) {
         $this->markTestSkipped("Couldn't create folder.");
         return;
     }
     if (!is_writable($this->outputPath) || !is_writable($this->fixture->options['tmp_path'])) {
         $this->markTestSkipped("Folder not writable.");
         return;
     }
     if (!ArchiveBzip2::isSupported()) {
         $this->markTestSkipped('Bzip2 files can not be extracted.');
         return;
     }
     $this->fixture->extract(__DIR__ . '/logo.bz2', $this->outputPath . '/logo-bz2.png');
     $this->assertTrue(is_file($this->outputPath . '/logo-bz2.png'));
     if (is_file($this->outputPath . '/logo-bz2.png')) {
         unlink($this->outputPath . '/logo-bz2.png');
     }
 }
 /**
  * Tests the isSupported Method.
  *
  * @group   JArchive
  * @return  void
  *
  * @covers  Joomla\Archive\Bzip2::isSupported
  */
 public function testIsSupported()
 {
     $this->assertEquals(extension_loaded('bz2'), \Joomla\Archive\Bzip2::isSupported());
 }