init(); } public function testSearcher() { $searcher = new search\searcher(); $result = $searcher->get_result('眼光影'); } public function testRequest() { $result = search\tcp_client::instance()->get_result('眼影'); } public function testUasort() { $words = []; $words[] = array("add_time" => 104,"count" => 1); $words[] = array("add_time" => 100,"count" => 1); $words[] = array("add_time" => 300,"count" => 1); $ret = uasort($words,'comp_time'); foreach ($words as $key => $val) { echo $key; } } public function testUnion() { $a1 = array(1,3,5,7,9); $a2 = array(1,2,3,5,8,9); $result = algorithm::set_union($a1,$a2); } }