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

Breadcrumb

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

function DirectDispatcher::handleThrowable

Throws

Throwable

1 call to DirectDispatcher::handleThrowable()
DirectDispatcher::dispatch in vendor/phpunit/phpunit/src/Event/Dispatcher/DirectDispatcher.php

File

vendor/phpunit/phpunit/src/Event/Dispatcher/DirectDispatcher.php, line 115

Class

DirectDispatcher
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Event

Code

public function handleThrowable(Throwable $t) : void {
    if ($this->isThrowableFromThirdPartySubscriber($t)) {
        Facade::emitter()->testRunnerTriggeredWarning(sprintf('Exception in third-party event subscriber: %s%s%s', $t->getMessage(), PHP_EOL, $t->getTraceAsString()));
        return;
    }
    // @codeCoverageIgnoreStart
    throw $t;
    // @codeCoverageIgnoreEnd
}
RSS feed
Powered by Drupal