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