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