Skip to content

Commit dad23fa

Browse files
Ignore unhappy paths that will become obsolete after refactoring to enumeration (for $order parameter) and boolean (for $orderDefects parameter)
1 parent e07878b commit dad23fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Runner/TestSuiteSorter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ public function reorderTestsInSuite(Test $suite, int $order, bool $resolveDepend
9696
];
9797

9898
if (!in_array($order, $allowedOrders, true)) {
99+
// @codeCoverageIgnoreStart
99100
throw new InvalidOrderException;
101+
// @codeCoverageIgnoreEnd
100102
}
101103

102104
$allowedOrderDefects = [
@@ -105,7 +107,9 @@ public function reorderTestsInSuite(Test $suite, int $order, bool $resolveDepend
105107
];
106108

107109
if (!in_array($orderDefects, $allowedOrderDefects, true)) {
110+
// @codeCoverageIgnoreStart
108111
throw new InvalidOrderException;
112+
// @codeCoverageIgnoreEnd
109113
}
110114

111115
if ($suite instanceof TestSuite) {

0 commit comments

Comments
 (0)