/** * @test * @since 8.1.0 */ public function defaultRootpathIsAlwaysTheSame() { assert(Rootpath::default(), equals(Rootpath::default())); }
/** * @test * @since 4.0.0 */ public function loadLocalWithCompletePathWithLoaderReturnsLoaderResult() { $rootpath = new Rootpath(); assert($this->resourceLoader->load($rootpath->to('src', 'main', 'resources', 'lang', 'stubbles.ini'), function ($resource) use($rootpath) { assert($rootpath->to('src', 'main', 'resources', 'lang', 'stubbles.ini'), equals($resource)); return 'foo'; }), equals('foo')); }