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