Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GlobalState.php

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\Util

Code

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;
}
RSS feed
Powered by Drupal