Return to min.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / array |
1.1 misho 1: --TEST-- 2: min() tests 3: --INI-- 4: precision=14 5: --FILE-- 6: <?php 7: 8: var_dump(min()); 9: var_dump(min(1)); 10: var_dump(min(array())); 11: var_dump(min(new stdclass)); 12: var_dump(min(2,1,2)); 13: var_dump(min(2.1,2.11,2.09)); 14: var_dump(min("", "t", "b")); 15: var_dump(min(false, true, false)); 16: var_dump(min(true, false, true)); 17: var_dump(min(1, true, false, true)); 18: var_dump(min(0, true, false, true)); 19: 20: echo "Done\n"; 21: ?> 22: --EXPECTF-- 23: Warning: min() expects at least 1 parameter, 0 given in %s on line 3 24: NULL 25: 26: Warning: min(): When only one parameter is given, it must be an array in %s on line 4 27: NULL 28: 29: Warning: min(): Array must contain at least one element in %s on line 5 30: bool(false) 31: 32: Warning: min(): When only one parameter is given, it must be an array in %s on line 6 33: NULL 34: int(1) 35: float(2.09) 36: string(0) "" 37: bool(false) 38: bool(false) 39: bool(false) 40: int(0) 41: Done