Annotation of embedaddon/php/ext/spl/tests/dit_004.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: SPL: DirectoryIterator and clone
                      3: --FILE--
                      4: <?php
                      5: $a = new DirectoryIterator(__DIR__);
                      6: $b = clone $a;
                      7: var_dump((string)$b == (string)$a);
                      8: var_dump($a->key(), $b->key());
                      9: $a->next();
                     10: $a->next();
                     11: $a->next();
                     12: $c = clone $a;
                     13: var_dump((string)$c == (string)$a);
                     14: var_dump($a->key(), $c->key());
                     15: ?>
                     16: ===DONE===
                     17: --EXPECTF--
                     18: bool(true)
                     19: int(0)
                     20: int(0)
                     21: bool(true)
                     22: int(3)
                     23: int(3)
                     24: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>