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

Breadcrumb

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

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

Code

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