--TEST-- RecursiveDirectoryIterator::getBasePathname() - basic test --CREDITS-- Pawel Krynicki #testfest AmsterdamPHP 2012-06-23 --FILE-- rewind(); //see https://bugs.php.net/bug.php?id=62914 while($it->valid()) { $list[] = $it->getSubPathname(); $it->next(); } asort($list); foreach ($list as $item) { echo $item . "\n"; } ?> --CLEAN-- --EXPECTF-- . .. depth1%c. depth1%c.. depth1%cdepth2%c. depth1%cdepth2%c.. depth1%cdepth2%cgetSubPathname_test_2.tmp depth1%cgetSubPathname_test_3.tmp getSubPathname_test_1.tmp