Example #1
0
 protected function setUp()
 {
     $this->app->backup();
     $this->application = new \Nano\Application();
     $this->application->withRootDir(__DIR__ . DS . '_files');
     $this->log = new \Nano\Util\Log($this->application);
     $this->log->clear();
 }
Example #2
0
 protected function setUp()
 {
     $this->app->backup();
     require_once $this->files->get($this, '/controllers/Test.php');
     $this->application = new \Nano\Application();
     $this->application->withRootDir($GLOBALS['application']->rootDir)->withConfigurationFormat('php')->withModule('module1', $this->files->get($this, '/module1'))->withModule('module2', $this->files->get($this, '/module2'))->configure();
     $this->renderer = new \Nano\Render($this->application);
     $this->renderer->setViewsPath($this->files->get($this, '/views'));
     $this->renderer->setModuleViewsDirName('views/default');
     $this->renderer->setLayoutsPath($this->files->get($this, '/layouts'));
     $this->controller = new \App\Controller\Test($this->application);
 }