From ab570b4575eb922c676b6cb40a87b34c7c026c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Pr=C3=A9vot?= Date: Sat, 20 Jun 2015 18:46:24 -0400 Subject: [PATCH] Fix comment --- test/Unit/Core/BigMath/GMPTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Unit/Core/BigMath/GMPTest.php b/test/Unit/Core/BigMath/GMPTest.php index 560e4bc..25ff8db 100644 --- a/test/Unit/Core/BigMath/GMPTest.php +++ b/test/Unit/Core/BigMath/GMPTest.php @@ -8,7 +8,7 @@ class Unit_Core_BigMath_GMPTest extends Unit_Core_BigMathTest { protected function setUp() { if (!extension_loaded('gmp')) { - $this->markTestSkipped('BCMath is not loaded'); + $this->markTestSkipped('GMP is not loaded'); } } From 1a4a660ed13183463eb1eecf0fe9e10226713ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Pr=C3=A9vot?= Date: Sat, 20 Jun 2015 18:57:10 -0400 Subject: [PATCH] Fix prioritization of GMP in tests This is a follow up of 3a5ba9e4fc4f1b425956b4388ca11262aadbd9c0. --- test/Unit/Core/BigMathTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Unit/Core/BigMathTest.php b/test/Unit/Core/BigMathTest.php index c2750d1..4155c21 100644 --- a/test/Unit/Core/BigMathTest.php +++ b/test/Unit/Core/BigMathTest.php @@ -35,10 +35,10 @@ public static function provideSubtractTest() { public function testCreateFromServerConfiguration() { $instance = \SecurityLib\BigMath::createFromServerConfiguration(); - if (extension_loaded('bcmath')) { - $this->assertEquals('SecurityLib\\BigMath\\BCMath', get_class($instance)); - } elseif (extension_loaded('gmp')) { + if (extension_loaded('gmp')) { $this->assertEquals('SecurityLib\\BigMath\\GMP', get_class($instance)); + } elseif (extension_loaded('bcmath')) { + $this->assertEquals('SecurityLib\\BigMath\\BCMath', get_class($instance)); } else { $this->assertEquals('SecurityLib\\BigMath\\PHPMath', get_class($instance)); }