mirror of
https://github.com/pestphp/pest.git
synced 2026-04-21 06:27:28 +02:00
23 lines
504 B
PHP
23 lines
504 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Subscribers;
|
|
|
|
use Pest\Plugins\Tia\ResultCollector;
|
|
use PHPUnit\Event\Test\ConsideredRisky;
|
|
use PHPUnit\Event\Test\ConsideredRiskySubscriber;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class EnsureTiaResultIsRecordedOnRisky implements ConsideredRiskySubscriber
|
|
{
|
|
public function __construct(private readonly ResultCollector $collector) {}
|
|
|
|
public function notify(ConsideredRisky $event): void
|
|
{
|
|
$this->collector->testRisky($event->message());
|
|
}
|
|
}
|