Annotation of embedaddon/php/ext/standard/tests/math/log10_error.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test wrong number of arguments for log10()
! 3: --INI--
! 4: precision = 14
! 5: --FILE--
! 6: <?php
! 7: /*
! 8: * proto float log10(float number)
! 9: * Function is implemented in ext/standard/math.c
! 10: */
! 11:
! 12: $arg_0 = 1.0;
! 13: $extra_arg = 1;
! 14:
! 15: echo "\nToo many arguments\n";
! 16: var_dump(log10($arg_0, $extra_arg));
! 17:
! 18: echo "\nToo few arguments\n";
! 19: var_dump(log10());
! 20:
! 21: ?>
! 22: --EXPECTF--
! 23: Too many arguments
! 24:
! 25: Warning: log10() expects exactly 1 parameter, 2 given in %s on line %d
! 26: NULL
! 27:
! 28: Too few arguments
! 29:
! 30: Warning: log10() expects exactly 1 parameter, 0 given in %s on line %d
! 31: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>