1--TEST-- 2Test 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?> 7Marco Fabbri mrfabbri@gmail.com 8Francesco Fullone ff@ideato.it 9#PHPTestFest Cesena Italia on 2009-06-20 10--FILE-- 11<?php 12 13 14echo "*** Test by calling method or function with incorrect numbers of arguments ***\n"; 15 16$gid = posix_getgid(); 17$extra_arg = '123'; 18 19var_dump(posix_setgid( $gid, $extra_arg ) ); 20var_dump(posix_setgid( ) ); 21 22?> 23===DONE=== 24--EXPECTF-- 25*** Test by calling method or function with incorrect numbers of arguments *** 26 27Warning: posix_setgid() expects exactly 1 parameter, 2 given in %s on line %d 28bool(false) 29 30Warning: posix_setgid() expects exactly 1 parameter, 0 given in %s on line %d 31bool(false) 32===DONE=== 33