CHips L MINI SHELL

CHips L pro

Current Path : /opt/cpanel/ea-php54/root/usr/share/tests/pear/File_Util/tests/Util/
Upload File :
Current File : //opt/cpanel/ea-php54/root/usr/share/tests/pear/File_Util/tests/Util/listDir.phpt

--TEST--
File_Uti::listDir()
--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);
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] => bug14030-to-delete.csv
            [size] => 161
        )

    [1] => stdClass Object
        (
            [name] => parser.php
            [size] => 577
        )

    [2] => stdClass Object
        (
            [name] => test.csv
            [size] => 537
        )

)

Copyright 2K16 - 2K18 Indonesian Hacker Rulez