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

Breadcrumb

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

function TestRunner::shouldErrorHandlerBeUsed

1 call to TestRunner::shouldErrorHandlerBeUsed()
TestRunner::run in vendor/phpunit/phpunit/src/Framework/TestRunner.php

File

vendor/phpunit/phpunit/src/Framework/TestRunner.php, line 464

Class

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

Namespace

PHPUnit\Framework

Code

private function shouldErrorHandlerBeUsed(TestCase $test) : bool {
    if (MetadataRegistry::parser()->forMethod($test::class, $test->name())
        ->isWithoutErrorHandler()
        ->isNotEmpty()) {
        return false;
    }
    return true;
}
RSS feed
Powered by Drupal