diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-09-16 14:16:42 -0300 |
---|---|---|
committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-10-14 12:07:20 -0300 |
commit | 9c144e0d8217d1ef7a83c2498214308b21af749f (patch) | |
tree | d977ba0d8601de477c52f62accf02c120ef06253 /ext/gmp | |
parent | b419732ddb0673dc5b15a67ee4bc7f06dd90d7d0 (diff) | |
download | php-git-9c144e0d8217d1ef7a83c2498214308b21af749f.tar.gz |
Trim trailing whitespace in tests
Diffstat (limited to 'ext/gmp')
44 files changed, 49 insertions, 49 deletions
diff --git a/ext/gmp/tests/002.phpt b/ext/gmp/tests/002.phpt index ac2a7a5494..0fbc864ec6 100644 --- a/ext/gmp/tests/002.phpt +++ b/ext/gmp/tests/002.phpt @@ -3,9 +3,9 @@ GMP functionality test - factorial --SKIPIF-- <?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- -<?php +<?php function fact($x) { - if($x <= 1) + if($x <= 1) return 1; else return gmp_mul($x,fact($x-1)); diff --git a/ext/gmp/tests/bug32773.phpt b/ext/gmp/tests/bug32773.phpt index 6823fa1a1b..efa293bbf2 100644 --- a/ext/gmp/tests/bug32773.phpt +++ b/ext/gmp/tests/bug32773.phpt @@ -6,10 +6,10 @@ Bug #32773 (binary GMP functions returns unexpected value, when second parameter <?php echo '10 + 0 = ', gmp_strval(gmp_add(10, 0)), "\n"; echo '10 + "0" = ', gmp_strval(gmp_add(10, '0')), "\n"; - + echo gmp_strval(gmp_div(10, 0))."\n"; echo gmp_strval(gmp_div_qr(10, 0))."\n"; - + ?> --EXPECTF-- 10 + 0 = 10 diff --git a/ext/gmp/tests/bug52906.phpt b/ext/gmp/tests/bug52906.phpt index 2bcd6a4e57..e00080d7ab 100644 --- a/ext/gmp/tests/bug52906.phpt +++ b/ext/gmp/tests/bug52906.phpt @@ -24,7 +24,7 @@ foreach($vals as $data) { } echo "Done\n"; ?> ---EXPECT-- +--EXPECT-- 7%3=1 7%3=1 2%7=2 diff --git a/ext/gmp/tests/cast.phpt b/ext/gmp/tests/cast.phpt index f3d93af08c..fe7e9a4664 100644 --- a/ext/gmp/tests/cast.phpt +++ b/ext/gmp/tests/cast.phpt @@ -13,7 +13,7 @@ var_dump((float) $n); var_dump((bool) $n); ?> ---EXPECTF-- +--EXPECTF-- 42 string(2) "42" int(42) diff --git a/ext/gmp/tests/clone.phpt b/ext/gmp/tests/clone.phpt index 54e23a78ac..d4326d522a 100644 --- a/ext/gmp/tests/clone.phpt +++ b/ext/gmp/tests/clone.phpt @@ -11,7 +11,7 @@ gmp_clrbit($a, 0); var_dump($a, $b); // $b should be unaffected ?> ---EXPECT-- +--EXPECT-- object(GMP)#1 (1) { ["num"]=> string(1) "2" diff --git a/ext/gmp/tests/gmp_abs.phpt b/ext/gmp/tests/gmp_abs.phpt index bb35891f2a..811ab3d5ee 100644 --- a/ext/gmp/tests/gmp_abs.phpt +++ b/ext/gmp/tests/gmp_abs.phpt @@ -21,7 +21,7 @@ var_dump(gmp_abs(array())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_abs(): Unable to convert variable to GMP - string is not an integer in %s on line %d string(1) "0" string(1) "0" diff --git a/ext/gmp/tests/gmp_and.phpt b/ext/gmp/tests/gmp_and.phpt index 9bc401031b..2fb27c3e70 100644 --- a/ext/gmp/tests/gmp_and.phpt +++ b/ext/gmp/tests/gmp_and.phpt @@ -25,7 +25,7 @@ var_dump(gmp_and(array(), array())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(6) "106502" string(5) "40994" string(3) "515" diff --git a/ext/gmp/tests/gmp_cmp.phpt b/ext/gmp/tests/gmp_cmp.phpt index 83e7910d1e..2e48d3b83b 100644 --- a/ext/gmp/tests/gmp_cmp.phpt +++ b/ext/gmp/tests/gmp_cmp.phpt @@ -24,7 +24,7 @@ var_dump(gmp_cmp()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- int(2) int(0) int(-1) diff --git a/ext/gmp/tests/gmp_com.phpt b/ext/gmp/tests/gmp_com.phpt index 1e0c1b4694..ae6ec59200 100644 --- a/ext/gmp/tests/gmp_com.phpt +++ b/ext/gmp/tests/gmp_com.phpt @@ -23,7 +23,7 @@ var_dump(gmp_strval(gmp_com())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(2) "-1" string(2) "-1" diff --git a/ext/gmp/tests/gmp_div_q.phpt b/ext/gmp/tests/gmp_div_q.phpt index 3b75a48e18..afc64c3547 100644 --- a/ext/gmp/tests/gmp_div_q.phpt +++ b/ext/gmp/tests/gmp_div_q.phpt @@ -26,7 +26,7 @@ var_dump(gmp_div_q(array(), array())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_div_q() expects at least 2 parameters, 0 given in %s on line %d NULL diff --git a/ext/gmp/tests/gmp_div_qr.phpt b/ext/gmp/tests/gmp_div_qr.phpt index 90099249db..936fbc6ef1 100644 --- a/ext/gmp/tests/gmp_div_qr.phpt +++ b/ext/gmp/tests/gmp_div_qr.phpt @@ -28,7 +28,7 @@ var_dump(gmp_div_qr(array(), array())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_div_qr() expects at least 2 parameters, 0 given in %s on line %d NULL diff --git a/ext/gmp/tests/gmp_div_r.phpt b/ext/gmp/tests/gmp_div_r.phpt index c1874c86f9..bab243e465 100644 --- a/ext/gmp/tests/gmp_div_r.phpt +++ b/ext/gmp/tests/gmp_div_r.phpt @@ -26,7 +26,7 @@ var_dump(gmp_div_r(array(), array())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_div_r() expects at least 2 parameters, 0 given in %s on line %d NULL diff --git a/ext/gmp/tests/gmp_divexact.phpt b/ext/gmp/tests/gmp_divexact.phpt index a42c1b6b4e..53f0c677ab 100644 --- a/ext/gmp/tests/gmp_divexact.phpt +++ b/ext/gmp/tests/gmp_divexact.phpt @@ -1,8 +1,8 @@ --TEST-- gmp_divexact() tests --SKIPIF-- -<?php -if (!extension_loaded("gmp")) die ("skip"); +<?php +if (!extension_loaded("gmp")) die ("skip"); if (!defined('GMP_VERSION') || version_compare("4.2.1", GMP_VERSION, ">=")) { die("skip your GMP is too old and will crash"); } @@ -38,7 +38,7 @@ var_dump(gmp_strval($r)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_divexact() expects exactly 2 parameters, 3 given in %s on line %d NULL diff --git a/ext/gmp/tests/gmp_fact.phpt b/ext/gmp/tests/gmp_fact.phpt index 5cb8089b49..032f735435 100644 --- a/ext/gmp/tests/gmp_fact.phpt +++ b/ext/gmp/tests/gmp_fact.phpt @@ -28,7 +28,7 @@ var_dump(gmp_strval(gmp_fact(array()))); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(1) "1" string(1) "1" string(1) "1" diff --git a/ext/gmp/tests/gmp_gcd.phpt b/ext/gmp/tests/gmp_gcd.phpt index 275f0bca35..cf4eac9e92 100644 --- a/ext/gmp/tests/gmp_gcd.phpt +++ b/ext/gmp/tests/gmp_gcd.phpt @@ -27,7 +27,7 @@ var_dump(gmp_gcd(array(),$n,1)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(1) "3" string(5) "12387" string(3) "224" diff --git a/ext/gmp/tests/gmp_gcdext.phpt b/ext/gmp/tests/gmp_gcdext.phpt index 57fb05822f..4adecf25d2 100644 --- a/ext/gmp/tests/gmp_gcdext.phpt +++ b/ext/gmp/tests/gmp_gcdext.phpt @@ -37,7 +37,7 @@ var_dump(gmp_gcdext()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(1) "3" string(1) "3" string(1) "1" diff --git a/ext/gmp/tests/gmp_hamdist.phpt b/ext/gmp/tests/gmp_hamdist.phpt index c21e03ccb2..60ef89f84d 100644 --- a/ext/gmp/tests/gmp_hamdist.phpt +++ b/ext/gmp/tests/gmp_hamdist.phpt @@ -24,7 +24,7 @@ var_dump(gmp_hamdist()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- int(13) int(-1) int(36) diff --git a/ext/gmp/tests/gmp_init.phpt b/ext/gmp/tests/gmp_init.phpt index 29640ba704..a35f12345c 100644 --- a/ext/gmp/tests/gmp_init.phpt +++ b/ext/gmp/tests/gmp_init.phpt @@ -17,7 +17,7 @@ var_dump(gmp_strval(gmp_init("993247326237679187178",3))); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- object(GMP)#%d (1) { ["num"]=> string(8) "98765678" diff --git a/ext/gmp/tests/gmp_intval.phpt b/ext/gmp/tests/gmp_intval.phpt index 088dd08fd8..f30b391573 100644 --- a/ext/gmp/tests/gmp_intval.phpt +++ b/ext/gmp/tests/gmp_intval.phpt @@ -24,7 +24,7 @@ var_dump(gmp_intval($g)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_intval() expects exactly 1 parameter, 2 given in %s on line %d NULL int(0) diff --git a/ext/gmp/tests/gmp_invert.phpt b/ext/gmp/tests/gmp_invert.phpt index 81a90fe16a..8c1d7c577c 100644 --- a/ext/gmp/tests/gmp_invert.phpt +++ b/ext/gmp/tests/gmp_invert.phpt @@ -27,7 +27,7 @@ var_dump(gmp_invert(array(), array())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(7) "2293131" string(1) "0" string(4) "5827" diff --git a/ext/gmp/tests/gmp_jacobi.phpt b/ext/gmp/tests/gmp_jacobi.phpt index 04ddba4f08..da92b87401 100644 --- a/ext/gmp/tests/gmp_jacobi.phpt +++ b/ext/gmp/tests/gmp_jacobi.phpt @@ -30,7 +30,7 @@ var_dump(gmp_jacobi()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(1) "0" string(2) "-1" string(1) "0" diff --git a/ext/gmp/tests/gmp_legendre.phpt b/ext/gmp/tests/gmp_legendre.phpt index 6dde34e1e7..71191e133d 100644 --- a/ext/gmp/tests/gmp_legendre.phpt +++ b/ext/gmp/tests/gmp_legendre.phpt @@ -30,7 +30,7 @@ var_dump(gmp_legendre()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(1) "0" string(2) "-1" string(1) "0" diff --git a/ext/gmp/tests/gmp_mod.phpt b/ext/gmp/tests/gmp_mod.phpt index 12e7cad2b3..4f216965c9 100644 --- a/ext/gmp/tests/gmp_mod.phpt +++ b/ext/gmp/tests/gmp_mod.phpt @@ -21,7 +21,7 @@ var_dump(gmp_mod($a, $b)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_mod() expects exactly 2 parameters, 0 given in %s on line %d NULL diff --git a/ext/gmp/tests/gmp_neg.phpt b/ext/gmp/tests/gmp_neg.phpt index 8ca3471cb8..c457fa6574 100644 --- a/ext/gmp/tests/gmp_neg.phpt +++ b/ext/gmp/tests/gmp_neg.phpt @@ -23,7 +23,7 @@ var_dump(gmp_neg(array())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- int(0) int(-1) int(1) diff --git a/ext/gmp/tests/gmp_nextprime.phpt b/ext/gmp/tests/gmp_nextprime.phpt index da89221c0a..87a295f62c 100644 --- a/ext/gmp/tests/gmp_nextprime.phpt +++ b/ext/gmp/tests/gmp_nextprime.phpt @@ -22,10 +22,10 @@ $n = gmp_nextprime(""); var_dump(gmp_strval($n)); $n = gmp_nextprime(new stdclass()); var_dump(gmp_strval($n)); - + echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(1) "2" string(1) "2" string(1) "2" diff --git a/ext/gmp/tests/gmp_or.phpt b/ext/gmp/tests/gmp_or.phpt index 035f070bd7..ef486df8e9 100644 --- a/ext/gmp/tests/gmp_or.phpt +++ b/ext/gmp/tests/gmp_or.phpt @@ -25,7 +25,7 @@ var_dump(gmp_or(array(), array())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(7) "2226831" string(6) "517363" string(10) "2342341163" diff --git a/ext/gmp/tests/gmp_perfect_square.phpt b/ext/gmp/tests/gmp_perfect_square.phpt index aa596ba9cd..0f519c7b79 100644 --- a/ext/gmp/tests/gmp_perfect_square.phpt +++ b/ext/gmp/tests/gmp_perfect_square.phpt @@ -26,7 +26,7 @@ var_dump(gmp_perfect_square(array())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- bool(true) bool(true) bool(false) diff --git a/ext/gmp/tests/gmp_popcount.phpt b/ext/gmp/tests/gmp_popcount.phpt index 4b45a04481..26a7b5af8d 100644 --- a/ext/gmp/tests/gmp_popcount.phpt +++ b/ext/gmp/tests/gmp_popcount.phpt @@ -17,7 +17,7 @@ var_dump(gmp_popcount()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- int(-1) int(0) int(10) diff --git a/ext/gmp/tests/gmp_pow.phpt b/ext/gmp/tests/gmp_pow.phpt index b1b7b7d57e..5424d410a0 100644 --- a/ext/gmp/tests/gmp_pow.phpt +++ b/ext/gmp/tests/gmp_pow.phpt @@ -30,7 +30,7 @@ var_dump(gmp_pow(array(),10)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(4) "1024" string(4) "1024" string(5) "-2048" diff --git a/ext/gmp/tests/gmp_pown.phpt b/ext/gmp/tests/gmp_pown.phpt index f5857b6995..b732aa331f 100644 --- a/ext/gmp/tests/gmp_pown.phpt +++ b/ext/gmp/tests/gmp_pown.phpt @@ -38,7 +38,7 @@ var_dump(gmp_powm(10, $n, 10)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(1) "0" string(1) "5" string(1) "5" diff --git a/ext/gmp/tests/gmp_prob_prime.phpt b/ext/gmp/tests/gmp_prob_prime.phpt index f8f3e6921c..99735bd7c0 100644 --- a/ext/gmp/tests/gmp_prob_prime.phpt +++ b/ext/gmp/tests/gmp_prob_prime.phpt @@ -33,7 +33,7 @@ var_dump(gmp_prob_prime(array())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- int(0) int(2) int(2) diff --git a/ext/gmp/tests/gmp_random.phpt b/ext/gmp/tests/gmp_random.phpt index 5533224b2c..ab2b11b3f7 100644 --- a/ext/gmp/tests/gmp_random.phpt +++ b/ext/gmp/tests/gmp_random.phpt @@ -19,7 +19,7 @@ var_dump(gmp_random("test")); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Deprecated: Function gmp_random() is deprecated in %s on line %d string(%d) "%d" diff --git a/ext/gmp/tests/gmp_remroot.phpt b/ext/gmp/tests/gmp_remroot.phpt index 331f447aa2..acd8f84925 100644 --- a/ext/gmp/tests/gmp_remroot.phpt +++ b/ext/gmp/tests/gmp_remroot.phpt @@ -20,7 +20,7 @@ var_dump(gmp_rootrem(100, 0)); var_dump(gmp_rootrem(100, -3)); ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_rootrem() expects exactly 2 parameters, 0 given in %s on line %d NULL array(2) { diff --git a/ext/gmp/tests/gmp_root.phpt b/ext/gmp/tests/gmp_root.phpt index 70faf27051..654e2ffeb6 100644 --- a/ext/gmp/tests/gmp_root.phpt +++ b/ext/gmp/tests/gmp_root.phpt @@ -20,7 +20,7 @@ var_dump(gmp_root(100, 0)); var_dump(gmp_root(100, -3)); ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_root() expects exactly 2 parameters, 0 given in %s on line %d NULL object(GMP)#%d (1) { diff --git a/ext/gmp/tests/gmp_scan0.phpt b/ext/gmp/tests/gmp_scan0.phpt index 2a87a968a2..fb70cf8b25 100644 --- a/ext/gmp/tests/gmp_scan0.phpt +++ b/ext/gmp/tests/gmp_scan0.phpt @@ -20,7 +20,7 @@ var_dump(gmp_scan0()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_scan0(): Starting index must be greater than or equal to zero in %s on line %d bool(false) int(2) diff --git a/ext/gmp/tests/gmp_scan1.phpt b/ext/gmp/tests/gmp_scan1.phpt index 7ebce9be7d..a89a9195b0 100644 --- a/ext/gmp/tests/gmp_scan1.phpt +++ b/ext/gmp/tests/gmp_scan1.phpt @@ -20,7 +20,7 @@ var_dump(gmp_scan1()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_scan1(): Starting index must be greater than or equal to zero in %s on line %d bool(false) int(1) diff --git a/ext/gmp/tests/gmp_sign.phpt b/ext/gmp/tests/gmp_sign.phpt index 1efdc28c6f..7ac03013d4 100644 --- a/ext/gmp/tests/gmp_sign.phpt +++ b/ext/gmp/tests/gmp_sign.phpt @@ -19,7 +19,7 @@ var_dump(gmp_sign()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- int(-1) int(1) int(0) diff --git a/ext/gmp/tests/gmp_sqrt.phpt b/ext/gmp/tests/gmp_sqrt.phpt index d90f538213..e824de3706 100644 --- a/ext/gmp/tests/gmp_sqrt.phpt +++ b/ext/gmp/tests/gmp_sqrt.phpt @@ -24,7 +24,7 @@ var_dump(gmp_sqrt(array())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_sqrt(): Number has to be greater than or equal to 0 in %s on line %d string(1) "0" diff --git a/ext/gmp/tests/gmp_sqrtrem.phpt b/ext/gmp/tests/gmp_sqrtrem.phpt index d30bb2b295..595a1dc45a 100644 --- a/ext/gmp/tests/gmp_sqrtrem.phpt +++ b/ext/gmp/tests/gmp_sqrtrem.phpt @@ -55,7 +55,7 @@ var_dump(gmp_sqrtrem()); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_sqrtrem(): Number has to be greater than or equal to 0 in %s on line %d bool(false) string(1) "0" diff --git a/ext/gmp/tests/gmp_strval.phpt b/ext/gmp/tests/gmp_strval.phpt index 4df78bdf7a..cfa7335667 100644 --- a/ext/gmp/tests/gmp_strval.phpt +++ b/ext/gmp/tests/gmp_strval.phpt @@ -33,7 +33,7 @@ var_dump(gmp_strval(new stdclass)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_strval() expects at least 1 parameter, 0 given in %s on line %d NULL diff --git a/ext/gmp/tests/gmp_sub.phpt b/ext/gmp/tests/gmp_sub.phpt index e1d9df67db..fabc0c0ebb 100644 --- a/ext/gmp/tests/gmp_sub.phpt +++ b/ext/gmp/tests/gmp_sub.phpt @@ -22,7 +22,7 @@ var_dump(gmp_strval($g)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_sub() expects exactly 2 parameters, 0 given in %s on line %d NULL diff --git a/ext/gmp/tests/gmp_testbit.phpt b/ext/gmp/tests/gmp_testbit.phpt index ab40abed7f..bdabe3d841 100644 --- a/ext/gmp/tests/gmp_testbit.phpt +++ b/ext/gmp/tests/gmp_testbit.phpt @@ -39,7 +39,7 @@ var_dump(gmp_strval($n)); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- Warning: gmp_testbit() expects exactly 2 parameters, 0 given in %s on line %d NULL diff --git a/ext/gmp/tests/gmp_xor.phpt b/ext/gmp/tests/gmp_xor.phpt index 2b0d29a620..9bf31f02f4 100644 --- a/ext/gmp/tests/gmp_xor.phpt +++ b/ext/gmp/tests/gmp_xor.phpt @@ -25,7 +25,7 @@ var_dump(gmp_xor(array(), array())); echo "Done\n"; ?> ---EXPECTF-- +--EXPECTF-- string(7) "2120329" string(6) "476369" string(10) "2342340648" diff --git a/ext/gmp/tests/serialize.phpt b/ext/gmp/tests/serialize.phpt index e9b9bb549f..dedd150725 100644 --- a/ext/gmp/tests/serialize.phpt +++ b/ext/gmp/tests/serialize.phpt @@ -22,7 +22,7 @@ try { } catch (Exception $e) { var_dump($e->getMessage()); } ?> ---EXPECTF-- +--EXPECTF-- object(GMP)#%d (1) { ["num"]=> string(2) "42" |