Skip to content

Commit ce497cf

Browse files
Ignore code from code coverage that only exists for the theoretical case of handling Test objects that do not implement Reorderable
1 parent bbfdc60 commit ce497cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Framework/TestSuite.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,9 @@ public function provides(): array
436436

437437
foreach ($this->tests as $test) {
438438
if (!$test instanceof Reorderable) {
439+
// @codeCoverageIgnoreStart
439440
continue;
441+
// @codeCoverageIgnoreEnd
440442
}
441443

442444
$this->providedTests = ExecutionOrderDependency::mergeUnique($this->providedTests, $test->provides());
@@ -456,7 +458,9 @@ public function requires(): array
456458

457459
foreach ($this->tests as $test) {
458460
if (!$test instanceof Reorderable) {
461+
// @codeCoverageIgnoreStart
459462
continue;
463+
// @codeCoverageIgnoreEnd
460464
}
461465

462466
$this->requiredTests = ExecutionOrderDependency::mergeUnique(

0 commit comments

Comments
 (0)