diff options
author | Xinchen Hui <laruence@gmail.com> | 2017-09-12 11:25:21 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2017-09-12 11:25:21 +0800 |
commit | ff6f41c94e38cb418a4466a236b0afabe222552f (patch) | |
tree | f03703f25f4d4dd6f042dd8a06ef018005f7d5fc /ext/standard/tests/math | |
parent | 0d890025ec338b767afd8433d3d852d7a4bba1d8 (diff) | |
download | php-git-ff6f41c94e38cb418a4466a236b0afabe222552f.tar.gz |
Narrow typeinfos down for zend_parse_paramenters_none
Diffstat (limited to 'ext/standard/tests/math')
-rw-r--r-- | ext/standard/tests/math/lcg_value_basic.phpt | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/ext/standard/tests/math/lcg_value_basic.phpt b/ext/standard/tests/math/lcg_value_basic.phpt index 6d624d84ab..8fc95190c6 100644 --- a/ext/standard/tests/math/lcg_value_basic.phpt +++ b/ext/standard/tests/math/lcg_value_basic.phpt @@ -21,36 +21,38 @@ if ($i != 100) { echo "PASSED\n"; } -echo "\n lcg_value error cases..spurious args get ignored\n"; +echo "\n lcg_value error cases..\n"; $res = lcg_value(23); -if (!is_float($res) || $res < 0 || $res > 1) { - echo "FAILED\n"; -} else { +if (is_null($res)) { echo "PASSED\n"; +} else { + echo "FAILED\n"; } $res = lcg_value(10,false); -if (!is_float($res) || $res < 0 || $res > 1) { - echo "FAILED\n"; -} else { +if (is_null($res)) { echo "PASSED\n"; +} else { + echo "FAILED\n"; } echo "MATHS test script completed\n"; ?> ---EXPECT-- +--EXPECTF-- MATHS test script started lcg_value tests... PASSED - lcg_value error cases..spurious args get ignored + lcg_value error cases.. + +Warning: lcg_value() expects exactly 0 parameters, 1 given in %slcg_value_basic.php on line %d PASSED + +Warning: lcg_value() expects exactly 0 parameters, 2 given in %slcg_value_basic.php on line %d PASSED MATHS test script completed - - |