1--TEST--
2Test function posix_geteuid() 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--
8Marco Fabbri mrfabbri@gmail.com
9Francesco Fullone ff@ideato.it
10#PHPTestFest Cesena Italia on 2009-06-20
11--FILE--
12<?php
13echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
14
15$extra_args = array( 12312, 2 => '1234', 'string' => 'string' );
16
17var_dump( posix_geteuid( $extra_args ));
18foreach ( $extra_args as $arg )
19{
20	var_dump(posix_geteuid( $arg ));
21}
22
23?>
24--EXPECTF--
25*** Test by calling method or function with incorrect numbers of arguments ***
26
27Warning: posix_geteuid() expects exactly 0 parameters, 1 given in %s on line %d
28NULL
29
30Warning: posix_geteuid() expects exactly 0 parameters, 1 given in %s on line %d
31NULL
32
33Warning: posix_geteuid() expects exactly 0 parameters, 1 given in %s on line %d
34NULL
35
36Warning: posix_geteuid() expects exactly 0 parameters, 1 given in %s on line %d
37NULL
38