function GlobalState::getIniSettingsAsString
1 call to GlobalState::getIniSettingsAsString()
- TestRunner::runInSeparateProcess in vendor/
phpunit/ phpunit/ src/ Framework/ TestRunner.php
File
-
vendor/
phpunit/ phpunit/ src/ Util/ GlobalState.php, line 181
Class
- GlobalState
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\UtilCode
public static function getIniSettingsAsString() : string {
$result = '';
foreach (ini_get_all(null, false) as $key => $value) {
if (self::isIniSettingDeprecated($key)) {
continue;
}
$result .= sprintf('@ini_set(%s, %s);' . "\n", self::exportVariable($key), self::exportVariable((string) $value));
}
return $result;
}