dit_003.phpt 206 B

123456789101112131415
  1. --TEST--
  2. SPL: FilesystemIterator and foreach
  3. --FILE--
  4. <?php
  5. $count = 0;
  6. foreach(new FilesystemIterator(__DIR__) as $ent)
  7. {
  8. ++$count;
  9. }
  10. var_dump($count > 0);
  11. ?>
  12. ===DONE===
  13. --EXPECTF--
  14. bool(true)
  15. ===DONE===