Example #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());
 }
Example #2
0
 public function testPharCreate()
 {
     $file = $this->path . 'test.tar';
     $this->_createFiles();
     $creator = new Creator($file);
     $creator->addFolder($this->path . 'files');
 }