/** * Tests the extract Method. * * @return void */ public function testExtract() { if (!JArchiveTar::isSupported()) { $this->markTestSkipped('Tar files can not be extracted.'); } $this->object->extract(__DIR__ . '/logo.tar', $this->outputPath); $this->assertFileExists($this->outputPath . '/logo-tar.png'); }
/** * Tests the extract Method. * * @return void */ public function testExtract() { if (!JArchiveTar::isSupported()) { $this->markTestSkipped('Tar files can not be extracted.'); return; } $this->object->extract(__DIR__ . '/logo.tar', static::$outputPath); $this->assertTrue(is_file(static::$outputPath . '/logo-tar.png')); if (is_file(static::$outputPath . '/logo-tar.png')) { unlink(static::$outputPath . '/logo-tar.png'); } }