public function testHttpRequest($url, $method, $return_only_status, $expected)
{
if (!function_exists('curl_init') && !ini_get('allow_url_fopen')) {
$this->markTestSkipped('neither curl nor allow_url_fopen are supported');
}
$result = PMA\libraries\Util::httpRequest($url, $method, $return_only_status);
$this->validateHttp($result, $expected);
}