Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Gets the value of a single or all environment variables
<?php getenv(?string $name = null, bool $local_only = false): string|array|false
<?php         (new LoadEnvironmentVariables)->bootstrap($this->getAppMock('.env'));



        $this->assertSame('BAR', env('FOO'));

        $this->assertSame('BAR', getenv('FOO'));

        $this->assertSame('BAR', $_ENV['FOO']);

        $this->assertSame('BAR', $_SERVER['FOO']);

    }
<?php {

    protected function getEnvironmentSetUp($app)

    {

        if (getenv('DB_CONNECTION') !== 'testing') {

            $this->markTestSkipped('Test requires a Sqlite connection.');

        }
<?php {

    protected function getEnvironmentSetUp($app)

    {

        if (getenv('DB_CONNECTION') !== 'testing') {

            $this->markTestSkipped('Test requires a Sqlite connection.');

        }
<?php {

    protected function getEnvironmentSetUp($app)

    {

        if (getenv('DB_CONNECTION') !== 'testing') {

            $this->markTestSkipped('Test requires a Sqlite connection.');

        }
<?php {

    protected function getEnvironmentSetUp($app)

    {

        if (getenv('DB_CONNECTION') !== 'testing') {

            $this->markTestSkipped('Test requires a Sqlite connection.');

        }