public function entriesInLang()
 {
     $c = new ArchiveCollection($this->archive, 'lang');
     try {
         $c->open();
         $expect = ['lang/Object.xp' => IOElement::class, 'lang/Type.xp' => IOElement::class, 'lang/reflect/' => IOCollection::class, 'lang/types/' => IOCollection::class, 'lang/Runnable.xp' => IOElement::class];
         for (reset($expect); $element = $c->next(), $name = key($expect); next($expect)) {
             $this->assertInstanceOf($expect[$name], $element);
             $this->assertXarUri($name, $element->getURI());
         }
         $this->assertEquals(null, $c->next());
     } finally {
         $c->close();
     }
 }
 public function entriesInLang()
 {
     $c = new ArchiveCollection($this->archive, 'lang');
     try {
         $c->open();
         $expect = array('lang/Object.xp' => 'io.collections.IOElement', 'lang/Type.xp' => 'io.collections.IOElement', 'lang/reflect/' => 'io.collections.IOCollection', 'lang/types/' => 'io.collections.IOCollection', 'lang/Runnable.xp' => 'io.collections.IOElement');
         for (reset($expect); $element = $c->next(), $name = key($expect); next($expect)) {
             $this->assertSubclass($element, $expect[$name]);
             $this->assertXarUri($name, $element->getURI());
         }
         $this->assertEquals(null, $c->next());
     } catch (\lang\Throwable $e) {
     }
     ensure($e);
     $c->close();
     if ($e) {
         throw $e;
     }
 }