diff --git a/src/InfoExtension.php b/src/InfoExtension.php index 2f7a18c..5b7f5dd 100644 --- a/src/InfoExtension.php +++ b/src/InfoExtension.php @@ -22,8 +22,8 @@ public static function getSubscribedEvents(): iterable Events\ExtensionsLoaded::class => [ ["onExtensionsLoaded", ], ], - Events\TestsStarted::class => [ - ["onTestsStarted", ], + Events\RunnerStarted::class => [ + ["printInfo", ], ], ]; } @@ -35,7 +35,7 @@ public function onExtensionsLoaded(Events\ExtensionsLoaded $event): void }, $event->extensions); } - public function onTestsStarted(Events\TestsStarted $event): void + public function printInfo(Events\RunnerStarted $event): void { echo $this->console->color(self::getTesterVersion() . "\n", "silver"); echo $this->console->color("Loaded extensions: " . implode(", ", $this->extensionNames) . "\n", "silver");