You are here

public function Util_ConfigurationTest::testHandlePHPConfigurationDoesNotOverriteVariablesFromPutEnv in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/tests/Util/ConfigurationTest.php \Util_ConfigurationTest::testHandlePHPConfigurationDoesNotOverriteVariablesFromPutEnv()

@backupGlobals enabled

See also

https://github.com/sebastianbergmann/phpunit/issues/1181

File

vendor/phpunit/phpunit/tests/Util/ConfigurationTest.php, line 331

Class

Util_ConfigurationTest
@since Class available since Release 3.3.0

Code

public function testHandlePHPConfigurationDoesNotOverriteVariablesFromPutEnv() {
  putenv('foo=putenv');
  $this->configuration
    ->handlePHPConfiguration();
  $this
    ->assertEquals(true, $_ENV['foo']);
  $this
    ->assertEquals('putenv', getenv('foo'));
}