From 3993645a7613515b1a02d24ba9178e4f7fbeeb23 Mon Sep 17 00:00:00 2001 From: Enrico Zimuel Date: Wed, 16 May 2012 14:59:51 +0200 Subject: [PATCH 1/2] Integrate new Zend\Crypt and Zend\Math in consuming components --- src/Server.php | 2 +- src/Value.php | 2 +- src/Value/BigInteger.php | 6 +++--- test/ValueTest.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Server.php b/src/Server.php index b602b0a..5a9bbe0 100644 --- a/src/Server.php +++ b/src/Server.php @@ -97,7 +97,7 @@ class Server extends AbstractServer 'i4' => 'i4', 'int' => 'int', 'integer' => 'int', - 'Zend\Crypt\Math\BigInteger' => 'i8', + 'Zend\Math\BigInteger' => 'i8', 'i8' => 'i8', 'ex:i8' => 'i8', 'double' => 'double', diff --git a/src/Value.php b/src/Value.php index f18c052..29d35be 100644 --- a/src/Value.php +++ b/src/Value.php @@ -256,7 +256,7 @@ protected static function _phpVarToNativeXmlRpc($value) return $value; } - if ($value instanceof \Zend\Crypt\Math\BigInteger) { + if ($value instanceof \Zend\Math\BigInteger) { return new Value\BigInteger($value); } diff --git a/src/Value/BigInteger.php b/src/Value/BigInteger.php index 7c1194e..a8783dc 100644 --- a/src/Value/BigInteger.php +++ b/src/Value/BigInteger.php @@ -31,7 +31,7 @@ class BigInteger extends Integer { /** - * @var \Zend\Crypt\Math\BigInteger + * @var \Zend\Math\BigInteger */ protected $_integer; @@ -40,7 +40,7 @@ class BigInteger extends Integer */ public function __construct($value) { - $this->_integer = new \Zend\Crypt\Math\BigInteger(); + $this->_integer = new \Zend\Math\BigInteger(); $this->_value = $this->_integer->init($this->_value); $this->_type = self::XMLRPC_TYPE_I8; } @@ -48,7 +48,7 @@ public function __construct($value) /** * Return bigint value object * - * @return \Zend\Crypt\Math\BigInteger + * @return \Zend\Math\BigInteger */ public function getValue() { diff --git a/test/ValueTest.php b/test/ValueTest.php index 93419af..1d89d54 100644 --- a/test/ValueTest.php +++ b/test/ValueTest.php @@ -22,7 +22,7 @@ namespace ZendTest\XmlRpc; use Zend\XmlRpc\Value; use Zend\XmlRpc\Generator\GeneratorInterface as Generator; -use Zend\Crypt\Math\BigInteger; +use Zend\Math\BigInteger; use Zend\Date; /** From 60ec0e2845a3978639491cd668e394210fef18b9 Mon Sep 17 00:00:00 2001 From: Maks3w Date: Fri, 18 May 2012 00:22:37 +0200 Subject: [PATCH 2/2] [Travis] Enable Zend\Math tests --- .travis/tested-components | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis/tested-components b/.travis/tested-components index b1f4a79..9b33820 100644 --- a/.travis/tested-components +++ b/.travis/tested-components @@ -29,6 +29,7 @@ Zend/Locale Zend/Log Zend/Mail Zend/Markup +Zend/Math Zend/Measure Zend/Memory Zend/Mime