--TEST--
File_Util::listDir() with sorting
--FILE--
<?php
// $Id: $
require_once 'File/Util.php';
$dir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'listDir';
$dirs = File_Util::listDir($dir, FILE_LIST_ALL &~ FILE_LIST_DOTS, FILE_SORT_REVERSE | FILE_SORT_SIZE);
foreach ($dirs as $k => $v) {
unset($dirs[$k]->date); // date is modified time, can't be tested for reliably
}
print_r($dirs);
?>
--EXPECT--
Array
(
[0] => stdClass Object
(
[name] => parser.php
[size] => 577
)
[1] => stdClass Object
(
[name] => test.csv
[size] => 537
)
[2] => stdClass Object
(
[name] => bug14030-to-delete.csv
[size] => 161
)
)
Copyright 2K16 - 2K18 Indonesian Hacker Rulez