@@ -2290,6 +2290,8 @@ public function testHashes() {
22902290 $ this ->assertTrue (3 === $ this ->redis ->hIncrBy ('h ' , 'x ' , 1 ));
22912291 $ this ->assertTrue (2 === $ this ->redis ->hIncrBy ('h ' , 'x ' , -1 ));
22922292 $ this ->assertTrue ("2 " === $ this ->redis ->hGet ('h ' , 'x ' ));
2293+ $ this ->assertTrue (1000000000002 === $ this ->redis ->hIncrBy ('h ' , 'x ' , 1000000000000 ));
2294+ $ this ->assertTrue ("1000000000002 " === $ this ->redis ->hGet ('h ' , 'x ' ));
22932295
22942296 $ this ->redis ->hSet ('h ' , 'y ' , 'not-a-number ' );
22952297 $ this ->assertTrue (FALSE === $ this ->redis ->hIncrBy ('h ' , 'y ' , 1 ));
@@ -2300,6 +2302,7 @@ public function testHashes() {
23002302 $ this ->assertTrue (1.5 === $ this ->redis ->hIncrByFloat ('h ' ,'x ' , 1.5 ));
23012303 $ this ->assertTrue (3.0 === $ this ->redis ->hincrByFloat ('h ' ,'x ' , 1.5 ));
23022304 $ this ->assertTrue (1.5 === $ this ->redis ->hincrByFloat ('h ' ,'x ' , -1.5 ));
2305+ $ this ->assertTrue (1000000000001.5 === $ this ->redis ->hincrByFloat ('h ' ,'x ' , 1000000000000 ));
23032306
23042307 $ this ->redis ->hset ('h ' ,'y ' ,'not-a-number ' );
23052308 $ this ->assertTrue (FALSE === $ this ->redis ->hIncrByFloat ('h ' , 'y ' , 1.5 ));
0 commit comments