Esempio n. 1
0
 /**
  * test add a folder to the archive
  *
  * @since 1.0
  */
 public function testAddFolderTar()
 {
     $file = $this->path . 'test-folder.tar';
     $filesPath = $this->path . 'files' . DS;
     $creator = new Creator($file);
     $creator->addFolder($filesPath);
     $this->assertFileExists($file);
     $this->assertEquals(10, $creator->getFilesCount());
 }
Esempio n. 2
0
 public function testRecursiveDirTar()
 {
     $file = $this->path . 'testRecursive.tar';
     $creator = new Creator($file);
     $adapter = $creator->addFolder(BP . DS . 'src');
     $this->assertInstanceOf('Elibyy\\General\\Adapter', $adapter);
     $this->assertEquals(9, $creator->getFilesCount());
 }