public function get($key, $value = null)
{
return $this->envBag->key($key, $value, true);
}
public function testGet() { $_ENV = ["APP_ENV" => "development"]; $env = new Env(); $this->assertSame("development", $env->get("APP_ENV")); $this->assertNull($env->get("NON_EXISTING")); $this->assertSame("production", $env->get("NON_EXISTING_2", "production")); }