コード例 #1
0
 public function testSendFileToUnsupportedProtocol()
 {
     $param = array('file' => $this->mockCurlRequestTrait->curl_file_create(D_APP_DIR . '/Assets/1.txt'), 'name' => 'test');
     $url = 'xftp://127.0.0.1/56stgseaafs/asfasdf34tr/asdfasdfgadg/dfghgdfgdaf/asfdadsfasdf/fdhgdh/wqrwerafdsgdsfg/sdgsdfgfdsg/sdgsdfga';
     $response = $this->mockCurlRequestTrait->rawSend($url, $param, 'POST');
     $this->assertEquals('CURL_ERROR', $response->getError());
 }
コード例 #2
0
 public function testDelRequestLogger()
 {
     $logger2 = new CurlRequestLoggerInterfaceExtendMock();
     $this->mockCurlRequestTrait->setRequestLogger('test2', $logger2);
     $this->mockCurlRequestTrait->delRequestLogger('test2');
 }