protected function setUp() { $this->app->backup(); $application = new \Nano\Application(); $application->withRootDir($GLOBALS['application']->rootDir)->withConfigurationFormat('php')->configure(); $this->response = new \Nano\Controller\Response($application); }
protected function setUp() { $this->app->backup(); include_once $this->files->get($this, '/TestController.php'); $application = new \Nano\Application(); $application->withRootDir($GLOBALS['application']->rootDir)->withConfigurationFormat('php')->withPlugin($this)->configure(); $this->controller = new Core_C_TestController($application); $this->resetWasRun(); }
protected function setUp() { $this->app->backup(); ob_start(); $this->setUseOutputBuffering(true); $application = new \Nano\Application(); $application->withRootDir($GLOBALS['application']->rootDir)->withConfigurationFormat('php')->configure(); $this->appRoot = dirName(__DIR__) . '/Application/_files'; $this->nanoRoot = $application->nanoRootDir; $this->cwd = getCwd(); $this->cli = new \Nano\Cli(); chDir($this->appRoot); }