We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c010172 commit 206e599Copy full SHA for 206e599
src/TextUI/Command/Commands/ListTestSuitesCommand.php
@@ -10,6 +10,7 @@
10
namespace PHPUnit\TextUI\Command;
11
12
use const PHP_EOL;
13
+use function assert;
14
use function count;
15
use function ksort;
16
use function sprintf;
@@ -36,9 +37,7 @@ public function execute(): Result
36
37
$suites = [];
38
39
foreach ($this->testSuite->tests() as $test) {
- if (!$test instanceof TestSuite) {
40
- continue;
41
- }
+ assert($test instanceof TestSuite);
42
43
$suites[$test->name()] = count($test->collect());
44
}
0 commit comments