public function packages_in_package($package) { $loader = new ResourcesIn(typeof($this)->getClassLoader()); $this->assertEquals(['com/github/mustache/unittest/'], $loader->listing()->package($package)->packages()); }
/** * Creates a new class loader based template loader * * @param var $base The delegate, either an IClassLoader or a string * @param string[] $extensions File extensions to check, including leading "." */ public function __construct($arg, $extensions = ['.handlebars']) { parent::__construct($arg, $extensions); }