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