mirror of
https://github.com/pestphp/pest.git
synced 2026-07-23 18:10:03 +02:00
24 lines
515 B
PHP
24 lines
515 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Logging\TeamCity\Subscriber;
|
|
|
|
use PHPUnit\Event\Test\Skipped;
|
|
use PHPUnit\Event\Test\SkippedSubscriber;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class TestSkippedSubscriber extends Subscriber implements SkippedSubscriber
|
|
{
|
|
public function notify(Skipped $event): void
|
|
{
|
|
if ($event->message() === '__TODO__') {
|
|
return; // "todo" tests are reported in the summary, not as ignored tests...
|
|
}
|
|
|
|
$this->logger()->testSkipped($event);
|
|
}
|
|
}
|