/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/spl/tests/dit_005.phpt
21 строка
433 B
Fabien Villepinte
Clean DONE tags from tests
07 ноя 2019, 23:31
07 ноя 2019, 23:31
a555cc0
Код
Авторство
О чём код?
--TEST-- SPL: FilesystemIterator and clone --FILE-- <?php // Let's hope nobody writes into this directory while testing... $a = new FileSystemIterator(__DIR__ . '/..'); $b = clone $a; var_dump((string)$b == (string)$a); var_dump($a->key() == $b->key()); $a->next(); $a->next(); $a->next(); $c = clone $a; var_dump((string)$c == (string)$a); var_dump($a->key() == $c->key()); ?> --EXPECT-- bool(true) bool(true) bool(true) bool(true)