src/Runners/PHPUnit/BaseRunner.php
protected function overrideEnvironmentVariables()
    {
        if (!isset($this->options->filtered['configuration'])) {
            return;
        }

        $variables = $this->options->filtered['configuration']->getEnvironmentVariables();

        foreach ($variables as $key => $value) {
            putenv(sprintf('%s=%s', $key, $value));

            $_ENV[$key] = $value;
        }
    }
protected function overrideEnvironmentVariables()
    {
        if (!isset($this->options->filtered['configuration'])) {
            return;
        }

        $variables = $this->options->filtered['configuration']->getEnvironmentVariables();

        foreach ($variables as $key => $value) {
            putenv(sprintf('%s=%s', $key, $value));

            $_ENV[$key] = $value;
        }
    }
protected function overrideEnvironmentVariables ( ) { if ( ! isset ( $ this -> options -> filtered [ 'configuration' ] ) ) { return ; } $ variables = $ this -> options -> filtered [ 'configuration' ] -> getEnvironmentVariables ( ) ; foreach ( $ variables as $ key => $ value ) { putenv ( sprintf ( '%s=%s' , $ key , $ value ) ) ; $ _ENV [ $ key ] = $ value ; } }
Overrides envirenment variables if needed.
Overrides envirenment variables if needed .