Skip to content

Commit

Permalink
use an earlier event in InfoExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
konecnyjakub committed Dec 29, 2024
1 parent 79ba3c5 commit 0efaebc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/InfoExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public static function getSubscribedEvents(): iterable
Events\ExtensionsLoaded::class => [
["onExtensionsLoaded", ],
],
Events\TestsStarted::class => [
["onTestsStarted", ],
Events\RunnerStarted::class => [
["printInfo", ],
],
];
}
Expand All @@ -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");
Expand Down

0 comments on commit 0efaebc

Please sign in to comment.