You are here

protected function DrupalStandardsListenerTrait::standardsEndTest in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Listeners/DrupalStandardsListenerTrait.php \Drupal\Tests\Listeners\DrupalStandardsListenerTrait::standardsEndTest()
  2. 10 core/tests/Drupal/Tests/Listeners/DrupalStandardsListenerTrait.php \Drupal\Tests\Listeners\DrupalStandardsListenerTrait::standardsEndTest()

Reacts to the end of a test.

Parameters

\PHPUnit\Framework\Test $test: The test object that has ended its test run.

float $time: The time the test took.

2 calls to DrupalStandardsListenerTrait::standardsEndTest()
DrupalListener::endTest in core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit7/DrupalListener.php
DrupalListener::endTest in core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/DrupalListener.php

File

core/tests/Drupal/Tests/Listeners/DrupalStandardsListenerTrait.php, line 236

Class

DrupalStandardsListenerTrait
Listens for PHPUnit tests and fails those with invalid coverage annotations.

Namespace

Drupal\Tests\Listeners

Code

protected function standardsEndTest($test, $time) {
  $this
    ->doEndTest($test, $time);
}