1--TEST-- 2Test ArrayObject::uasort() function : wrong arg count 3--FILE-- 4<?php 5/* Prototype : int ArrayObject::uasort(callback cmp_function) 6 * Description: proto int ArrayIterator::uasort(callback cmp_function) 7 Sort the entries by values user defined function. 8 * Source code: ext/spl/spl_array.c 9 * Alias to functions: 10 */ 11 12$ao = new ArrayObject(); 13 14try { 15 $ao->uasort(); 16} catch (BadMethodCallException $e) { 17 echo $e->getMessage() . "\n"; 18} 19 20try { 21 $ao->uasort(1,2); 22} catch (BadMethodCallException $e) { 23 echo $e->getMessage() . "\n"; 24} 25?> 26===DONE=== 27--EXPECT-- 28Function expects exactly one argument 29Function expects exactly one argument 30===DONE=== 31