protected function getApp() { $structure = $this->getStructure(); $this->root = vfsStream::setup('root', 777, $structure); // print_r(vfsStream::inspect(new vfsStreamStructureVisitor())->getStructure()); $config = new Config(); $config->setProtectedFromArray(array('theme' => 'test', 'language' => 'en', 'languages' => array('en' => array('value' => 'english', 'code' => 'en')), 'basePath' => vfsStream::url('root'), 'skullyBasePath' => vfsStream::url('root/vendor/triodigital/skully/'), 'baseUrl' => 'http://localhost/skully/', 'urlRules' => array('' => 'home/index', 'admin' => 'admin/home/index'))); $_SESSION['__language'] = 'id'; $app = new \App\Application($config); unsetRealpath(); $pluginsPath = realpath(__DIR__ . '/../../App/smarty/plugins'); setRealpath(); $app->getTemplateEngine()->addPluginsDir($pluginsPath); return $app; }