You are here

public function Util_ConfigurationTest::testHandlePHPConfigurationDoesNotOverwrittenExistingEnvArrayVariables in Zircon Profile 8

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

@backupGlobals enabled

See also

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

File

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

Class

Util_ConfigurationTest
@since Class available since Release 3.3.0

Code

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