Skip to content

Commit

Permalink
Fix prioritization of GMP in tests
Browse files Browse the repository at this point in the history
This is a follow up of 3a5ba9e.
  • Loading branch information
DavidPrevot committed Jun 20, 2015
1 parent 32bb90b commit 1a4a660
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/Unit/Core/BigMathTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 1a4a660

Please sign in to comment.