Exemple #1
0
 public function testExtractEntryPasswd()
 {
     $obj = new Archive7z($this->filesDir . '/testPasswd.7z', $this->cliPath);
     $obj->setOutputDirectory($this->tmpDir);
     $obj->setPassword('123');
     $obj->extractEntry('1.jpg');
 }
Exemple #2
0
 public function testChangeSystemLocale()
 {
     $file = iconv('UTF-8', $this->getCurrentFilesystemEncoding(), 'чавес.jpg');
     $obj = new Archive7z($this->fixturesDir . '/test.7z', $this->cliPath);
     $obj->setChangeSystemLocale(true);
     $obj->setOutputDirectory($this->tmpDir);
     $obj->extractEntry($file);
     self::assertFileExists($this->tmpDir . '/' . $file);
 }