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

Breadcrumb

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

function Registry::saveTo

1 call to Registry::saveTo()
TestRunner::saveConfigurationForChildProcess in vendor/phpunit/phpunit/src/Framework/TestRunner.php

File

vendor/phpunit/phpunit/src/TextUI/Configuration/Registry.php, line 35

Class

Registry
CLI options and XML configuration are static within a single PHPUnit process. It is therefore okay to use a Singleton registry here.

Namespace

PHPUnit\TextUI\Configuration

Code

public static function saveTo(string $path) : bool {
    $result = file_put_contents($path, serialize(self::get()));
    if ($result) {
        return true;
    }
    // @codeCoverageIgnoreStart
    return false;
    // @codeCoverageIgnoreEnd
}
RSS feed
Powered by Drupal