Annotation of embedaddon/php/ext/standard/tests/general_functions/proc_nice_error.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Test function proc_nice() by calling it more than or less than its expected arguments
                      3: --SKIPIF--
                      4: <?php
                      5: if(!function_exists('proc_nice')) die("skip. proc_nice not available ");
                      6: ?>
                      7: --FILE--
                      8: <?php
1.1.1.2 ! misho       9: echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
1.1       misho      10: 
1.1.1.2 ! misho      11: $priority = 1;
1.1       misho      12: 
1.1.1.2 ! misho      13: $extra_arg = 1;
1.1       misho      14: 
1.1.1.2 ! misho      15: var_dump(proc_nice( $priority, $extra_arg) );
1.1       misho      16: 
                     17: var_dump(proc_nice(  ) );
                     18: 
                     19: 
                     20: ?>
                     21: --EXPECTF--
1.1.1.2 ! misho      22: *** Test by calling method or function with incorrect numbers of arguments ***
        !            23: 
        !            24: Warning: proc_nice() expects exactly 1 parameter, 2 given in %s line %d
        !            25: bool(false)
        !            26: 
        !            27: Warning: proc_nice() expects exactly 1 parameter, 0 given in %s line %d
        !            28: bool(false)

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