Skip to content

Commit

Permalink
Merge branch 'QA_4_7'
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jun 28, 2017
2 parents 0ceda63 + 49c9635 commit 4ee38fe
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions test/classes/UtilTest.php
Expand Up @@ -168,6 +168,46 @@ public function testHttpRequestCurl($url, $method, $return_only_status, $expecte
$this->validateHttp($result, $expected);
}

/**
* Test for http request using Curl with CURLOPT_CAPATH
*
* @group medium
*
* @return void
*
* @dataProvider httpRequests
*
* @group network
*/
public function testHttpRequestCurlCAPath($url, $method, $return_only_status, $expected)
{
if (! function_exists('curl_init')) {
$this->markTestSkipped('curl not supported');
}
$result = PMA\libraries\Util::httpRequestCurl($url, $method, $return_only_status, null, '', CURLOPT_CAPATH);
$this->validateHttp($result, $expected);
}

/**
* Test for http request using Curl with CURLOPT_CAINFO
*
* @group medium
*
* @return void
*
* @dataProvider httpRequests
*
* @group network
*/
public function testHttpRequestCurlCAInfo($url, $method, $return_only_status, $expected)
{
if (! function_exists('curl_init')) {
$this->markTestSkipped('curl not supported');
}
$result = PMA\libraries\Util::httpRequestCurl($url, $method, $return_only_status, null, '', CURLOPT_CAINFO);
$this->validateHttp($result, $expected);
}

/**
* Test for http request using fopen
*
Expand Down

0 comments on commit 4ee38fe

Please sign in to comment.