1--TEST--
2SPL: DirectoryIterator test getGroup
3--SKIPIF--
4<?php
5if (PHP_OS_FAMILY === 'Windows') { die('SKIP Testing file groups, not available for Windows'); }
6if (!extension_loaded('posix') || posix_geteuid() == 0) { die('SKIP Cannot run test as root.'); }
7--CREDITS--
8Cesare D'Amico <cesare.damico@gruppovolta.it>
9Andrea Giorgini <agiorg@gmail.com>
10Filippo De Santis <fd@ideato.it>
11Daniel Londero <daniel.londero@gmail.com>
12Francesco Trucchia <ft@ideato.it>
13Jacopo Romei <jacopo@sviluppoagile.it>
14#Test Fest Cesena (Italy) on 2009-06-20
15--FILE--
16<?php
17$dirname = 'DirectoryIterator_getGroup_basic';
18mkdir($dirname);
19$dir = new DirectoryIterator($dirname);
20$expected = filegroup($dirname);
21$actual = $dir->getGroup();
22var_dump($expected == $actual);
23?>
24--CLEAN--
25<?php
26$dirname = 'DirectoryIterator_getGroup_basic';
27rmdir($dirname);
28?>
29--EXPECT--
30bool(true)
31