xref: /PHP-5.4/ext/spl/tests/dit_005.phpt (revision 3a4eb3e4)
1--TEST--
2SPL: FilesystemIterator and clone
3--FILE--
4<?php
5$a = new FileSystemIterator(__DIR__);
6$b = clone $a;
7var_dump((string)$b == (string)$a);
8var_dump($a->key() == $b->key());
9$a->next();
10$a->next();
11$a->next();
12$c = clone $a;
13var_dump((string)$c == (string)$a);
14var_dump($a->key() == $c->key());
15?>
16===DONE===
17--EXPECTF--
18bool(true)
19bool(true)
20bool(true)
21bool(true)
22===DONE===
23