Commit c574e8c0 authored by Bas de Nooijer's avatar Bas de Nooijer

Fix for PHP warnings when running unittests without pecl_http available

parent 630ee35d
......@@ -62,6 +62,8 @@ class Solarium_Client_Adapter_PeclHttpTest extends PHPUnit_Framework_TestCase
public function requestProvider()
{
// prevents undefined constants errors
if (function_exists('http_get')) {
$methods = array(
Solarium_Client_Request::METHOD_GET => array(
'method' => HTTP_METH_GET,
......@@ -93,6 +95,7 @@ class Solarium_Client_Adapter_PeclHttpTest extends PHPUnit_Framework_TestCase
return $data;
}
}
public function testToHttpRequestWithHeaders()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment