function PhpUnitTestDiscoveryTracer::trace
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Test/PhpUnitTestDiscoveryTracer.php \Drupal\Core\Test\PhpUnitTestDiscoveryTracer::trace()
File
-
core/
lib/ Drupal/ Core/ Test/ PhpUnitTestDiscoveryTracer.php, line 28
Class
- PhpUnitTestDiscoveryTracer
- Traces events dispatched by PHPUnit during the test discovery.
Namespace
Drupal\Core\TestCode
public function trace(Event $event) : void {
if (in_array(get_class($event), [
PhpunitErrorTriggered::class,
PhpunitWarningTriggered::class,
WarningTriggered::class,
])) {
$this->testDiscovery
->addWarning(sprintf('%s: %s', get_class($event), $event->message()));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.