Beispiel #1
0
 /**
  * testing addition by patterns to the archive
  *
  * @since 1.0
  */
 public function testPatterns()
 {
     $reader = new Reader($this->path . 'test.zip');
     $filesPath = $this->path . 'files';
     chdir($filesPath);
     $globRes = $reader->addGlob('*.txt');
     $patternRes = $reader->addPattern('/\\.(?:txt)$/', $filesPath);
     $this->assertTrue(!empty($globRes));
     $this->assertTrue(!empty($patternRes));
 }