public function testRegisterDirectory() { $path = dirname(dirname(__DIR__)) . '/resources/background'; $tpl = new Template(new Translator('en')); $tpl->registerDirectory($path); $file = $tpl->find('ryzom_logo.png'); $this->assertNotEmpty($file); $this->assertEquals($path . '/ryzom_logo.png', $file); }