From: Antony Dovgal Date: Mon, 3 Apr 2006 18:11:56 +0000 (+0000) Subject: add test for gmp_nextprime() X-Git-Tag: RELEASE_1_3~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50b05cf884d685dae748a143fa057b8c770cfe31;p=php add test for gmp_nextprime() --- diff --git a/ext/gmp/tests/gmp_nextprime.phpt b/ext/gmp/tests/gmp_nextprime.phpt new file mode 100644 index 0000000000..84d945b3fc --- /dev/null +++ b/ext/gmp/tests/gmp_nextprime.phpt @@ -0,0 +1,40 @@ +--TEST-- +gmp_nextprime() +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +string(1) "2" +string(1) "2" +string(4) "-997" +string(4) "1009" +string(6) "100003" + +Warning: gmp_nextprime(): Unable to convert variable to GMP - wrong type in %s on line %d +string(1) "0" +string(1) "0" + +Warning: gmp_nextprime(): Unable to convert variable to GMP - wrong type in %s on line %d +string(1) "0" +Done