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

24 lines
444 B
PHP

--TEST--
Test return values of posix_getgrgid() on MacOSX.
--CREDITS--
Till Klampaeckel, till@php.net
TestFest Berlin 2009
--SKIPIF--
<?php
if (!extension_loaded('posix')) {
die('SKIP The posix extension is not loaded.');
}
if (strtolower(PHP_OS) != 'darwin') {
die('SKIP This test requires MacOSX/Darwin.');
}
?>
--FILE--
<?php
$grp = posix_getgrgid(-1);
var_dump($grp['name']);
?>
===DONE===
--EXPECT--
string(7) "nogroup"
===DONE===