diff --git a/src/Test/TestExtractor.php b/src/Test/TestExtractor.php index bae3297f..960b9e92 100644 --- a/src/Test/TestExtractor.php +++ b/src/Test/TestExtractor.php @@ -32,7 +32,7 @@ public function __invoke(): iterable throw new ShouldNotHappenException(); } - $reflectedTest = $this->reflectTest($test::class); + $reflectedTest = $this->reflectTest(get_class($test)); if ($reflectedTest !== null) { yield $reflectedTest; }