Return to dechex_error.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / math |
1.1 misho 1: --TEST-- 2: Test dechex() - wrong params dechex() 3: --FILE-- 4: <?php 5: /* Prototype : string dechex ( int $number ) 6: * Description: Returns a string containing a hexadecimal representation of the given number argument. 7: * Source code: ext/standard/math.c 8: */ 9: 10: echo "*** Testing dechex() : error conditions ***\n"; 11: 12: echo "\nIncorrect number of arguments\n"; 13: dechex(); 14: dechex(23,2,true); 15: 16: ?> 17: ===Done=== 18: --EXPECTF-- 19: *** Testing dechex() : error conditions *** 20: 21: Incorrect number of arguments 22: 23: Warning: dechex() expects exactly 1 parameter, 0 given in %s on line %d 24: 25: Warning: dechex() expects exactly 1 parameter, 3 given in %s on line %d 26: ===Done===