php-src/ext/posix/tests/posix_getgroups_basic.phpt

24 lines
458 B
PHP

--TEST--
Test posix_getgroups() function : basic functionality
--SKIPIF--
<?php
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
?>
--FILE--
<?php
echo "Basic test of POSIX getgroups\n";
$groups = posix_getgroups();
if (!is_array($groups)) {
echo "TEST FAILED - array result expected\n";
} else {
echo "TEST PASSED\n";
}
?>
===DONE===
--EXPECT--
Basic test of POSIX getgroups
TEST PASSED
===DONE===