Skip to content

Commit

Permalink
Fix InitialTestsRunnerTest (#1942)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Mar 22, 2024
1 parent 8115a6c commit c4cb2fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/phpunit/Process/Runner/InitialTestsRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
namespace Infection\Tests\Process\Runner;

use function array_map;
use function array_unique;
use function array_values;
use function extension_loaded;
use Infection\Event\InitialTestCaseWasCompleted;
use Infection\Event\InitialTestSuiteWasFinished;
Expand Down Expand Up @@ -120,7 +122,7 @@ public function test_it_creates_a_process_execute_it_and_dispatch_events_accordi
InitialTestCaseWasCompleted::class,
InitialTestSuiteWasFinished::class,
],
array_map('get_class', $this->eventDispatcher->getEvents()),
array_values(array_unique(array_map('get_class', $this->eventDispatcher->getEvents()))),
);
}

Expand Down

0 comments on commit c4cb2fa

Please sign in to comment.