Annotation of embedaddon/php/ext/posix/tests/posix_setuid_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test function posix_setuid() 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: --CREDITS--
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: $uid = '123';
18:
19:
20: $extra_arg = '12312';
21:
22: var_dump(posix_setuid( $uid, $extra_arg ) );
23:
24: var_dump(posix_setuid( ) );
25:
26:
27: ?>
28: --EXPECTF--
29: *** Test by calling method or function with incorrect numbers of arguments ***
30:
31: Warning: posix_setuid() expects exactly 1 parameter, 2 given in %s on line 11
32: bool(false)
33:
34: Warning: posix_setuid() expects exactly 1 parameter, 0 given in %s on line 13
35: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>