setEnvironment() public method

Set the environment of the application. Has to be called before boot().
public setEnvironment ( string $environment )
$environment string
コード例 #1
0
ファイル: TestCase.php プロジェクト: autarky/framework
 /**
  * {@inheritdoc}
  */
 public function setUp()
 {
     $this->app = $this->createApplication();
     $this->app->setEnvironment('testing');
     $this->app->boot();
     $this->app->getErrorHandler()->setRethrow(true);
 }