コード例 #1
0
ファイル: EnvironmentTest.php プロジェクト: cgrandval/opencfp
 /** @test */
 public function it_should_encapsulate_valid_environments()
 {
     $this->assertInstanceOf(Environment::class, Environment::production());
     $this->assertEquals('production', Environment::production());
     $this->assertEquals('development', Environment::development());
     $this->assertEquals('testing', Environment::testing());
 }
コード例 #2
0
ファイル: Application.php プロジェクト: AaronMuslim/opencfp
 /**
  * Tells if application is in production environment.
  * @return boolean
  */
 public function isProduction()
 {
     return $this['env']->equals(Environment::production());
 }