Esempio n. 1
0
 protected function setUp()
 {
     $this->app->backup();
     $this->application = new \Nano\Application();
     $this->application->withConfigurationFormat('php')->withRootDir($GLOBALS['application']->rootDir)->withModule('example', __DIR__ . '/_files/example')->withModule('another-example', __DIR__ . '/_files/another-example')->configure();
     $this->helper = $this->application->helper;
 }
Esempio n. 2
0
 protected function setUp()
 {
     $this->app->backup();
     $this->application = new \Nano\Application();
     $this->application->withConfigurationFormat('php')->withRootDir(__DIR__);
     $this->files->clean($this, '/settings');
     $this->builder = new \Nano\Application\Config\Builder($this->application);
 }
Esempio n. 3
0
 protected function setUp()
 {
     $this->app->backup();
     include_once $this->files->get($this, '/TestRunnableRoute.php');
     $this->application = new \Nano\Application();
     $this->application->withConfigurationFormat('php')->withRootDir($GLOBALS['application']->rootDir)->configure();
     $this->application->dispatcher->setResponse(new \Nano\Controller\Response\Test($this->application));
 }