mirror of
https://github.com/pestphp/pest.git
synced 2026-06-05 10:52:14 +02:00
23 lines
476 B
PHP
23 lines
476 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Subscribers;
|
|
|
|
use Pest\Plugins\Tia\ResultCollector;
|
|
use PHPUnit\Event\Test\Skipped;
|
|
use PHPUnit\Event\Test\SkippedSubscriber;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final readonly class EnsureTiaResultIsRecordedOnSkipped implements SkippedSubscriber
|
|
{
|
|
public function __construct(private ResultCollector $collector) {}
|
|
|
|
public function notify(Skipped $event): void
|
|
{
|
|
$this->collector->testSkipped($event->message());
|
|
}
|
|
}
|