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