Return to array_merge_recursive_error.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / array |
1.1 misho 1: --TEST-- 2: Test array_merge_recursive() function : error conditions 3: --FILE-- 4: <?php 5: /* Prototype : array array_merge_recursive(array $arr1[, array $...]) 6: * Description: Recursively merges elements from passed arrays into one array 7: * Source code: ext/standard/array.c 8: */ 9: 10: echo "*** Testing array_merge_recursive() : error conditions ***\n"; 11: 12: // Zero arguments 13: echo "\n-- Testing array_merge_recursive() function with Zero arguments --\n"; 14: var_dump( array_merge_recursive() ); 15: 16: echo "Done"; 17: ?> 18: --EXPECTF-- 19: *** Testing array_merge_recursive() : error conditions *** 20: 21: -- Testing array_merge_recursive() function with Zero arguments -- 22: 23: Warning: array_merge_recursive() expects at least 1 parameter, 0 given in %s on line %d 24: NULL 25: Done