--TEST-- Test array_udiff_uassoc() function : usage variation --FILE-- getMessage() . "\n"; } echo "\n-- comparison function taking too few parameters --\n"; function too_few_parameters ($val1) { return 1; } var_dump(array_udiff_uassoc($arr1, $arr2, 'too_few_parameters', 'too_few_parameters')); ?> ===DONE=== --EXPECT-- *** Testing array_udiff_uassoc() : usage variation - differing comparison functions*** -- comparison function with an incorrect return value -- array(1) { [0]=> int(1) } -- comparison function taking too many parameters -- Exception: Too few arguments to function too_many_parameters(), 2 passed and exactly 3 expected -- comparison function taking too few parameters -- array(1) { [0]=> int(1) } ===DONE===