Annotation of embedaddon/php/ext/standard/tests/array/max_error.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test wrong number of arguments for min()
        !             3: --FILE--
        !             4: <?php
        !             5: /* 
        !             6:  * proto mixed min(mixed arg1 [, mixed arg2 [, mixed ...]])
        !             7:  * Function is implemented in ext/standard/array.c
        !             8: */ 
        !             9: 
        !            10: 
        !            11: echo "\n*** Testing Error Conditions ***\n";
        !            12: 
        !            13: var_dump(max());
        !            14: var_dump(max(1));
        !            15: var_dump(max(array()));
        !            16: var_dump(max(new stdclass));
        !            17: 
        !            18: ?>
        !            19: --EXPECTF--
        !            20: *** Testing Error Conditions ***
        !            21: 
        !            22: Warning: max() expects at least 1 parameter, 0 given in %s on line 10
        !            23: NULL
        !            24: 
        !            25: Warning: max(): When only one parameter is given, it must be an array in %s on line 11
        !            26: NULL
        !            27: 
        !            28: Warning: max(): Array must contain at least one element in %s on line 12
        !            29: bool(false)
        !            30: 
        !            31: Warning: max(): When only one parameter is given, it must be an array in %s on line 13
        !            32: NULL

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>