1--TEST--
2FileSystemIterator without SKIP_DOTS
3--FILE--
4<?php
5
6$dir = __DIR__ . '/filesystemiterator_no_skip_dots';
7mkdir($dir);
8touch($dir . '/file');
9
10$it = new FileSystemIterator($dir, 0);
11$files = [];
12foreach ($it as $f) {
13    $files[] = $f->getFileName();
14}
15sort($files);
16var_dump($files);
17
18?>
19--CLEAN--
20<?php
21$dir = __DIR__ . '/filesystemiterator_no_skip_dots';
22unlink($dir . '/file');
23rmdir($dir);
24?>
25--EXPECT--
26array(3) {
27  [0]=>
28  string(1) "."
29  [1]=>
30  string(2) ".."
31  [2]=>
32  string(4) "file"
33}
34