1--TEST--
2Test 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
11echo "*** Testing expm1() : error conditions ***\n";
12
13echo "\n-- Testing expm1() function with less than expected no. of arguments --\n";
14expm1();
15echo "\n-- Testing expm1() function with more than expected no. of arguments --\n";
16expm1(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
25Warning: 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
29Warning: expm1() expects exactly 1 parameter, 2 given in %s on line %d
30===Done===
31