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; }
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); }
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)); }