Annotation of embedaddon/php/ext/posix/tests/posix_setgid_error.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test function posix_setgid() by calling it more than or less than its expected arguments.
        !             3: --CREDITS--
        !             4: --SKIPIF--
        !             5: <?php 
        !             6:         if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; 
        !             7: ?>
        !             8: Marco Fabbri mrfabbri@gmail.com
        !             9: Francesco Fullone ff@ideato.it
        !            10: #PHPTestFest Cesena Italia on 2009-06-20
        !            11: --FILE--
        !            12: <?php
        !            13: 
        !            14: 
        !            15: echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
        !            16: 
        !            17: $gid = posix_getgid();
        !            18: $extra_arg = '123';
        !            19: 
        !            20: var_dump(posix_setgid( $gid, $extra_arg ) );
        !            21: var_dump(posix_setgid(  ) );
        !            22: 
        !            23: ?>
        !            24: ===DONE===
        !            25: --EXPECTF--
        !            26: *** Test by calling method or function with incorrect numbers of arguments ***
        !            27: 
        !            28: Warning: posix_setgid() expects exactly 1 parameter, 2 given in %s on line %d
        !            29: bool(false)
        !            30: 
        !            31: Warning: posix_setgid() expects exactly 1 parameter, 0 given in %s on line %d
        !            32: bool(false)
        !            33: ===DONE===

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