1--TEST--
2Test posix_getgroups() function : basic functionality
3--SKIPIF--
4<?php
5    if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
6?>
7--FILE--
8<?php
9  echo "Basic test of POSIX getgroups\n";
10
11  $groups = posix_getgroups();
12
13  if (!is_array($groups)) {
14    echo "TEST FAILED - array result expected\n";
15  } else {
16    echo "TEST PASSED\n";
17  }
18
19?>
20--EXPECT--
21Basic test of POSIX getgroups
22TEST PASSED
23