1--TEST-- 2Test function posix_seteuid() 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 13 14 15echo "*** Test by calling method or function with incorrect numbers of arguments ***\n"; 16 17$uid = '123'; 18$extra_arg = '12312'; 19 20var_dump(posix_seteuid( $uid, $extra_arg ) ); 21var_dump(posix_seteuid( ) ); 22 23 24?> 25--EXPECTF-- 26*** Test by calling method or function with incorrect numbers of arguments *** 27 28Warning: posix_seteuid() expects exactly 1 parameter, 2 given in %s on line 9 29bool(false) 30 31Warning: posix_seteuid() expects exactly 1 parameter, 0 given in %s on line 10 32bool(false) 33