Пример #1
0
 function testFindFilesBasic()
 {
     $d = new Dir("/test/advances_dir_list/");
     $only_menu_ini_results = $d->findMatchingElements(Dir::MODE_FILES_AND_FOLDERS, "/[_]*menu[\\.]ini/");
     $this->assertTrue(count($only_menu_ini_results[0]) + count($only_menu_ini_results[1]) == 1, "Il numero dei file trovati non corrisponde!!");
 }