示例#1
0
 public function testTransportLevelException()
 {
     $this->setExpectedException(get_class(new TransportLevelException()));
     $curl = new Curl();
     $curl->performRequest('', '');
 }
示例#2
0
 public function testRealRequestWitchCurl()
 {
     $api = new Api('testapi', 'test12345678');
     $curl = new Curl();
     $curl->setCurlOptSSLVerifypeer(false);
     $api->setTransport($curl);
     $response = $api->requestAndGetObject(new UList());
     $this->assertTrue(is_array($response->toArray()));
 }