public static function PHPUnit_Util_GlobalState::getIniSettingsAsString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Util/GlobalState.php \PHPUnit_Util_GlobalState::getIniSettingsAsString()
1 call to PHPUnit_Util_GlobalState::getIniSettingsAsString()
- PHPUnit_Framework_TestCase::run in vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php - Runs the test case and collects the results in a TestResult object. If no TestResult object is passed a new one will be created.
File
- vendor/
phpunit/ phpunit/ src/ Util/ GlobalState.php, line 76
Class
- PHPUnit_Util_GlobalState
- @since Class available since Release 3.4.0
Code
public static function getIniSettingsAsString() {
$result = '';
$iniSettings = ini_get_all(null, false);
foreach ($iniSettings as $key => $value) {
$result .= sprintf('@ini_set(%s, %s);' . "\n", self::exportVariable($key), self::exportVariable($value));
}
return $result;
}