Skip to content

Commit 327f2ae

Browse files
committed
Adjusted exception caught when both ext-bcmath and ext-gmp are not installed in BigIntegerValueTest
1 parent 43a85d4 commit 327f2ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/BigIntegerValueTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace LaminasTest\XmlRpc;
66

7+
use Laminas\Math\BigInteger\Exception\RuntimeException;
78
use Laminas\XmlRpc\AbstractValue;
89
use Laminas\XmlRpc\Generator\GeneratorInterface as Generator;
910
use Laminas\XmlRpc\Value\BigInteger;
@@ -31,7 +32,7 @@ protected function setUp(): void
3132
}
3233
try {
3334
new BigInteger(0);
34-
} catch (Exception $e) {
35+
} catch (RuntimeException $e) {
3536
$this->markTestSkipped($e->getMessage());
3637
}
3738
}

0 commit comments

Comments
 (0)