예제 #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;
 }
예제 #2
0
파일: BuilderTest.php 프로젝트: visor/nano
 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);
 }
예제 #3
0
파일: RunnableTest.php 프로젝트: visor/nano
 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));
 }