diff --git a/src/helpers.php b/src/helpers.php index 7b87a30..338a337 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -1,8 +1,8 @@ assertSame('prod', env('APP_ENV')); } + + /** @test */ + public function it_returns_a_default_value() + { + $this->assertSame('local', env('APP_ENV', 'local')); + } + + /** @test */ + public function it_returns_null_if_there_is_no_default() + { + $this->assertNull(env('APP_ENV')); + } }