Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 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);
 }