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 512f824 commit 248a2dcCopy full SHA for 248a2dc
tests/Php86/Php86Test.php
@@ -40,6 +40,12 @@ public function testClamp(): void
40
$this->assertSame(10, clamp(12, null, 10));
41
$this->assertSame(5, clamp(-9999, 5, null));
42
$this->assertSame(12, clamp(12, 5, null));
43
+ $a = new \InvalidArgumentException('a');
44
+ $b = new \RuntimeException('b');
45
+ $c = new \LogicException('c');
46
+ $this->assertSame($a, clamp($a, $b, $c));
47
+ $this->assertSame($b, clamp($b, $a, $c));
48
+ $this->assertSame($c, clamp($c, $a, $b));
49
50
$errorMessage = null;
51
0 commit comments