summaryrefslogtreecommitdiffstats
path: root/php-ircmaxell-security-lib-upstream.patch
blob: 24be37b858fb5bd46b1d51105da4a304e4c37a19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From ab570b4575eb922c676b6cb40a87b34c7c026c0e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Pr=C3=A9vot?= <david@tilapin.org>
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?= <david@tilapin.org>
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));
         }