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

Breadcrumb

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

function TeamCityLogger::testConsideredRisky

Throws

InvalidArgumentException

File

vendor/phpunit/phpunit/src/Logging/TeamCity/TeamCityLogger.php, line 230

Class

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

Namespace

PHPUnit\Logging\TeamCity

Code

public function testConsideredRisky(ConsideredRisky $event) : void {
    if ($this->time === null) {
        $this->time = $event->telemetryInfo()
            ->time();
    }
    $this->writeMessage('testFailed', [
        'name' => $event->test()
            ->name(),
        'message' => $event->message(),
        'details' => '',
        'duration' => $this->duration($event),
    ]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal