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