Annotation of embedaddon/php/ext/standard/tests/math/expm1_error.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test expm1() - Error conditions
! 3: --FILE--
! 4: <?php
! 5: /* Prototype : float expm1 ( float $arg )
! 6: * Description: Returns exp(number) - 1, computed in a way that is accurate even
! 7: * when the value of number is close to zero.
! 8: * Source code: ext/standard/math.c
! 9: */
! 10:
! 11: echo "*** Testing expm1() : error conditions ***\n";
! 12:
! 13: echo "\n-- Testing expm1() function with less than expected no. of arguments --\n";
! 14: expm1();
! 15: echo "\n-- Testing expm1() function with more than expected no. of arguments --\n";
! 16: expm1(23,true);
! 17:
! 18: ?>
! 19: ===Done===
! 20: --EXPECTF--
! 21: *** Testing expm1() : error conditions ***
! 22:
! 23: -- Testing expm1() function with less than expected no. of arguments --
! 24:
! 25: Warning: expm1() expects exactly 1 parameter, 0 given in %s on line %d
! 26:
! 27: -- Testing expm1() function with more than expected no. of arguments --
! 28:
! 29: Warning: expm1() expects exactly 1 parameter, 2 given in %s on line %d
! 30: ===Done===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>