public function test_fromName()
 {
     $zip = new \ZipArchive();
     $zip->open(FIXTURES_DIR . '/test.zip');
     $entry = ZipArchiveEntry::fromName('README.md', $zip);
     $this->assertEquals(0, $entry->getIndex());
     $this->assertEquals('README.md', $entry->getName());
 }
 /**
  * Get the current entry
  * @return  ZipArchiveEntry
  */
 public function current()
 {
     return ZipArchiveEntry::fromIndex($this->index, $this->archive);
 }