function Facade::initForIsolation
@codeCoverageIgnore
@noinspection PhpUnused
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Facade.php, line 90
Class
- Facade
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\EventCode
public function initForIsolation(HRTime $offset, bool $exportObjects) : CollectingDispatcher {
$dispatcher = new CollectingDispatcher();
$this->emitter = new DispatchingEmitter($dispatcher, new Telemetry\System(new Telemetry\SystemStopWatchWithOffset($offset), new Telemetry\SystemMemoryMeter(), $this->garbageCollectorStatusProvider()));
if ($exportObjects) {
$this->emitter
->exportObjects();
}
$this->sealed = true;
return $dispatcher;
}