1--TEST--
2Test hypot() - wrong params test hypot()
3--FILE--
4<?php
5/* Prototype  : float hypot  ( float $x  , float $y  )
6 * Description: Calculate the length of the hypotenuse of a right-angle triangle.
7 * Source code: ext/standard/math.c
8 */
9
10echo "*** Testing hypot() : error conditions ***\n";
11
12echo "\n-- Testing hypot() function with less than expected no. of arguments --\n";
13hypot();
14hypot(36);
15
16echo "\n-- Testing hypot() function with more than expected no. of arguments --\n";
17hypot(36,25,0);
18
19?>
20===Done===
21--EXPECTF--
22*** Testing hypot() : error conditions ***
23
24-- Testing hypot() function with less than expected no. of arguments --
25
26Warning: hypot() expects exactly 2 parameters, 0 given in %s on line %d
27
28Warning: hypot() expects exactly 2 parameters, 1 given in %s on line %d
29
30-- Testing hypot() function with more than expected no. of arguments --
31
32Warning: hypot() expects exactly 2 parameters, 3 given in %s on line %d
33===Done===