示例#1
0
 /** @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
 /**
  * Tells if application is in development environment.
  * @return boolean
  */
 public function isDevelopment()
 {
     return $this['env']->equals(Environment::development());
 }