Skip to content

Commit 56e3af0

Browse files
committed
test: replace magic numbers with constants
1 parent 876194e commit 56e3af0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/system/Debug/ExceptionsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public function testDetermineCodes(): void
5757
{
5858
$determineCodes = $this->getPrivateMethodInvoker($this->exception, 'determineCodes');
5959

60-
$this->assertSame([500, 9], $determineCodes(new RuntimeException('This.')));
61-
$this->assertSame([500, 1], $determineCodes(new RuntimeException('That.', 600)));
62-
$this->assertSame([404, 1], $determineCodes(new RuntimeException('There.', 404)));
60+
$this->assertSame([500, EXIT__AUTO_MIN], $determineCodes(new RuntimeException('This.')));
61+
$this->assertSame([500, EXIT_ERROR], $determineCodes(new RuntimeException('That.', 600)));
62+
$this->assertSame([404, EXIT_ERROR], $determineCodes(new RuntimeException('There.', 404)));
6363
}
6464

6565
public function testRenderBacktrace(): void

0 commit comments

Comments
 (0)