mirror of
https://github.com/pestphp/pest.git
synced 2026-09-06 23:03:34 +02:00
chore: coding style changes
This commit is contained in:
@@ -11,14 +11,8 @@ use Pest\Logging\TeamCity\TeamCityLogger;
|
||||
*/
|
||||
abstract class Subscriber // @pest-arch-ignore-line
|
||||
{
|
||||
/**
|
||||
* Creates a new Subscriber instance.
|
||||
*/
|
||||
public function __construct(private readonly TeamCityLogger $logger) {}
|
||||
|
||||
/**
|
||||
* Creates a new TeamCityLogger instance.
|
||||
*/
|
||||
final protected function logger(): TeamCityLogger // @pest-arch-ignore-line
|
||||
{
|
||||
return $this->logger;
|
||||
|
||||
@@ -15,7 +15,7 @@ final class TestSkippedSubscriber extends Subscriber implements SkippedSubscribe
|
||||
public function notify(Skipped $event): void
|
||||
{
|
||||
if ($event->message() === '__TODO__') {
|
||||
return; // "todo" tests are reported in the summary, not as ignored tests...
|
||||
return;
|
||||
}
|
||||
|
||||
$this->logger()->testSkipped($event);
|
||||
|
||||
Reference in New Issue
Block a user