php-src/ext/posix/tests/posix_setgid_basic.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

27 lines
576 B
PHP

--TEST--
Test function posix_setgid() by calling it with its expected arguments
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
?>
--CREDITS--
Marco Fabbri mrfabbri@gmail.com
Francesco Fullone ff@ideato.it
#PHPTestFest Cesena Italia on 2009-06-20
--FILE--
<?php
echo "*** Test by calling method or function with its expected arguments ***\n";
$gid = posix_getgid();
var_dump(posix_setgid( $gid ) );
?>
===DONE===
--EXPECT--
*** Test by calling method or function with its expected arguments ***
bool(true)
===DONE===