public function testSendMultiRequest() { $httpCore = new RequestCore("http://www.baidu.com"); $ch1 = curl_init("http://www.baidu.com"); curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1); $ch2 = curl_init("http://cn.bing.com"); curl_setopt($ch2, CURLOPT_RETURNTRANSFER, 1); @($result = $httpCore->send_multi_request(array($ch1, $ch2))); $this->assertNotNull($result); }