<?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.'); }