Exemple #1
0
 /**
  * testing that the adapter is instance of {@link Elibyy\General\Adapter}
  *
  * @since 1.0
  */
 public function testAdapter()
 {
     $file = $this->path . DS . 'test.zip';
     $reader = new Reader($file);
     $this->assertInstanceOf('Elibyy\\General\\Adapter', $reader->getAdapter());
     $this->assertInstanceOf('Elibyy\\Adapters\\ZipAdapter', $reader->compress(null));
 }
Exemple #2
0
 /**
  * testing compression changing
  *
  * @since 1.0
  */
 public function testCompress()
 {
     $reader = new Reader($this->path . 'test.bz2');
     $results = $reader->compress(4096);
     $this->assertInstanceOf('PharData', $results);
 }