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\ConfigurationCode
public static function saveTo(string $path) : bool {
$result = file_put_contents($path, serialize(self::get()));
if ($result) {
return true;
}
// @codeCoverageIgnoreStart
return false;
// @codeCoverageIgnoreEnd
}