1--TEST-- 2Test ArrayObject::uksort() function : wrong arg count 3--FILE-- 4<?php 5/* Sort the entries by key using user defined function. 6 * Source code: ext/spl/spl_array.c 7 * Alias to functions: 8 */ 9 10$ao = new ArrayObject(); 11 12try { 13 $ao->uksort(); 14} catch (ArgumentCountError $e) { 15 echo $e->getMessage() . "\n"; 16} 17 18try { 19 $ao->uksort(1,2); 20} catch (ArgumentCountError $e) { 21 echo $e->getMessage() . "\n"; 22} 23?> 24--EXPECT-- 25ArrayObject::uksort() expects exactly 1 argument, 0 given 26ArrayObject::uksort() expects exactly 1 argument, 2 given 27