コード例 #1
0
ファイル: HelperBrokerTest.php プロジェクト: visor/nano
 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));
 }