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

Breadcrumb

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

function ProgressPrinter::testErrored

File

vendor/phpunit/phpunit/src/TextUI/Output/Default/ProgressPrinter/ProgressPrinter.php, line 239

Class

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

Namespace

PHPUnit\TextUI\Output\Default\ProgressPrinter

Code

public function testErrored(Errored $event) : void {
    
    /*
     * @todo Eliminate this special case
     */
    if (str_contains($event->asString(), 'Test was run in child process and ended unexpectedly')) {
        $this->updateTestStatus(TestStatus::error());
        return;
    }
    if (!$this->prepared) {
        $this->printProgressForError();
    }
    else {
        $this->updateTestStatus(TestStatus::error());
    }
}
RSS feed
Powered by Drupal