Annotation of embedaddon/php/ext/standard/tests/math/log1p_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test log1p() - Error conditions
3: --FILE--
4: <?php
5: /* Prototype : float log1p ( float $arg )
6: * Description: Returns log(1 + number), 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 log1p() : error conditions ***\n";
12:
13: echo "\n-- Testing log1p() function with less than expected no. of arguments --\n";
14: log1p();
15: echo "\n-- Testing log1p() function with more than expected no. of arguments --\n";
16: log1p(36, true);
17: ?>
18: ===Done===
19: --EXPECTF--
20: *** Testing log1p() : error conditions ***
21:
22: -- Testing log1p() function with less than expected no. of arguments --
23:
24: Warning: log1p() expects exactly 1 parameter, 0 given in %s on line %d
25:
26: -- Testing log1p() function with more than expected no. of arguments --
27:
28: Warning: log1p() expects exactly 1 parameter, 2 given in %s on line %d
29: ===Done===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>