1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/ext/posix/tests/posix_getgrgid_basic.phpt
Nikita Popov c5401854fc Run tidy
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00

28 lines
477 B
PHP

--TEST--
Test posix_getgrgid() function : basic functionality
--SKIPIF--
<?php
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
?>
--FILE--
<?php
echo "Basic test of POSIX getgid and getgrid functions\n";
$gid = posix_getgid();
$groupinfo = posix_getgrgid($gid);
print_r($groupinfo);
?>
--EXPECTF--
Basic test of POSIX getgid and getgrid functions
Array
(
[name] => %s
[passwd] => %a
[members] => Array
%a
[gid] => %d
)