From 56c1b58e43a852662fd13ee39a39219188fbb5de Mon Sep 17 00:00:00 2001 From: Mickael Perraud Date: Sat, 2 Oct 2010 11:50:08 +0200 Subject: [PATCH] Crypt: fix test execution --- src/Math.php | 6 +++--- test/DiffieHellmanTest.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Math.php b/src/Math.php index b396886..2b2340c 100644 --- a/src/Math.php +++ b/src/Math.php @@ -22,7 +22,7 @@ /** * @namespace */ -namespace Zend\Crypt\Math; +namespace Zend\Crypt; /** * @uses Zend\Crypt\Math\BigInteger @@ -70,7 +70,7 @@ public function rand($minimum, $maximum) * @param string $long * @return string */ - public function btwoc($long) + public function btwoc($long) { if (ord($long[0]) > 127) { return "\x00" . $long; @@ -84,7 +84,7 @@ public function btwoc($long) * @param string $binary * @return string */ - public function fromBinary($binary) + public function fromBinary($binary) { return $this->_math->binaryToInteger($binary); } diff --git a/test/DiffieHellmanTest.php b/test/DiffieHellmanTest.php index c04a7b6..1819cd2 100644 --- a/test/DiffieHellmanTest.php +++ b/test/DiffieHellmanTest.php @@ -145,7 +145,7 @@ public function testDiffieWithBinaryFormsAndLargeIntegers_OpensslTest() public function testGenerateKeysWithUnsetPrivateKey() { - $dh = new Zend_Crypt_DiffieHellman(563, 5); + $dh = new DiffieHellman(563, 5); $dh->generateKeys(); $privateKey = $dh->getPrivateKey(); $this->assertNotNull($privateKey);