Skip to content

Commit f8243ef

Browse files
authored
Fixed test to expect the correct exception type.
1 parent 47cfb51 commit f8243ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/BCTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function testBcCoprimeException()
169169
// Test that exceptions are thrown
170170
// if an invalid value is provided.
171171

172-
$this->expectException(\ValueError::class);
172+
$this->expectException(\Phactor\BCMathException::class);
173173

174174
$this->bc->coprime('invalid', $this->b);
175175
}

0 commit comments

Comments
 (0)