summaryrefslogtreecommitdiff
path: root/ext/posix/tests/posix_getgrgid_macosx.phpt
blob: f9e6cc1d53853d548f588b36c19997bbce88a9d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--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===