serverPathsGet('localhost', '//my_project/main'); $is_experimental_dir = array_filter($locations, function($b) { return $b->getDir() != null && $b->getDir()->getDir() == '//my_project/main/Experimental'; }); assert(count($is_experimental_dir) == 1); $is_readme = array_filter($locations, function($b) { return $b->getFile() != null && $b->getFile()->getDepotFile() == '//my_project/main/README'; }); assert(count($is_readme) == 1);