From 281a8c669e34ae047731ddc8887f83d4dc73d028 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 14 Jun 2014 20:47:57 -0500 Subject: [PATCH] BigInteger: fix unit tests --- tests/Unit/Math/BigInteger/TestCase.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Unit/Math/BigInteger/TestCase.php b/tests/Unit/Math/BigInteger/TestCase.php index cdc8b2e5..5b86645e 100644 --- a/tests/Unit/Math/BigInteger/TestCase.php +++ b/tests/Unit/Math/BigInteger/TestCase.php @@ -274,12 +274,12 @@ abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase $rand1 = $min->random($min, $max); // technically $rand1 can equal $min but with the $min and $max we've // chosen it's just not that likely - $this->assertTrue($rand1->compareTo($min) > 0); - $this->assertTrue($rand1->compareTo($max) < 0); + $this->assertTrue($rand1->compare($min) > 0); + $this->assertTrue($rand1->compare($max) < 0); $rand2 = $min->random($max); - $this->assertTrue($rand1->compareTo($min) > 0); - $this->assertTrue($rand1->compareTo($max) < 0); + $this->assertTrue($rand1->compare($min) > 0); + $this->assertTrue($rand1->compare($max) < 0); $this->assertFalse($rand1->equals($rand2)); }