1--TEST-- 2Test wrong number of arguments for min() 3--FILE-- 4<?php 5/* 6 * proto mixed min(mixed arg1 [, mixed arg2 [, mixed ...]]) 7 * Function is implemented in ext/standard/array.c 8*/ 9 10 11echo "\n*** Testing Error Conditions ***\n"; 12 13var_dump(max()); 14var_dump(max(1)); 15var_dump(max(array())); 16var_dump(max(new stdclass)); 17 18?> 19--EXPECTF-- 20*** Testing Error Conditions *** 21 22Warning: max() expects at least 1 parameter, 0 given in %s on line 10 23NULL 24 25Warning: max(): When only one parameter is given, it must be an array in %s on line 11 26NULL 27 28Warning: max(): Array must contain at least one element in %s on line 12 29bool(false) 30 31Warning: max(): When only one parameter is given, it must be an array in %s on line 13 32NULL 33