/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/spl/tests/DirectoryIterator_getOwner_basic.phpt
33 строки
852 B
Ilija Tovilo
Close PHP tags in tests
18 окт 2023, 18:34
Не верифицирован
18 окт 2023, 18:34
f39b5c4
Код
Авторство
О чём код?
--TEST-- SPL: DirectoryIterator test getOwner --EXTENSIONS-- posix --SKIPIF-- <?php if (PHP_OS_FAMILY === 'Windows') { die('SKIP Testing file ownership, not available for Windows'); } if (posix_geteuid() == 0) die('SKIP Cannot run test as root.'); ?> --CREDITS-- Cesare D'Amico <cesare.damico@gruppovolta.it> Andrea Giorgini <agiorg@gmail.com> Filippo De Santis <fd@ideato.it> Daniel Londero <daniel.londero@gmail.com> Francesco Trucchia <ft@ideato.it> Jacopo Romei <jacopo@sviluppoagile.it> #Test Fest Cesena (Italy) on 2009-06-20 --FILE-- <?php $dirname = 'DirectoryIterator_getOwner_basic'; mkdir($dirname); $dir = new DirectoryIterator($dirname); $expected = fileowner($dirname); $actual = $dir->getOwner(); var_dump($expected == $actual); ?> --CLEAN-- <?php $dirname = 'DirectoryIterator_getOwner_basic'; rmdir($dirname); ?> --EXPECT-- bool(true)