コード例 #1
0
 public function test_folders()
 {
     global $total_folders;
     $finder = new Finder('tests/test-data/bigtree');
     $this->assertEquals($total_folders, count($finder->folders()));
     foreach ($finder->folders() as $path) {
         if (!$path->isDir()) {
             $this->fail("Path {$path->getPathname()} is not a folder");
         }
     }
 }