1--TEST--
2Test ArrayObject::uasort() function : wrong arg count
3--FILE--
4<?php
5/* Sort the entries by values 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->uasort();
14} catch (ArgumentCountError $e) {
15    echo $e->getMessage() . "\n";
16}
17
18try {
19    $ao->uasort(1,2);
20} catch (ArgumentCountError $e) {
21    echo $e->getMessage() . "\n";
22}
23?>
24--EXPECT--
25ArrayObject::uasort() expects exactly 1 argument, 0 given
26ArrayObject::uasort() expects exactly 1 argument, 2 given
27