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

Updated curl adapter unittests

parent 76900b35
...@@ -55,15 +55,18 @@ class CurlTest extends \PHPUnit_Framework_TestCase ...@@ -55,15 +55,18 @@ class CurlTest extends \PHPUnit_Framework_TestCase
{ {
$data = 'data'; $data = 'data';
$headers = array('X-dummy: data'); $headers = array('X-dummy: data');
$handler = curl_init();
// this should be ok, no exception // this should be ok, no exception
$this->adapter->check($data, $headers); $this->adapter->check($data, $headers, $handler);
$data = ''; $data = '';
$headers = array(); $headers = array();
$this->setExpectedException('Solarium\Exception\HttpException'); $this->setExpectedException('Solarium\Exception\HttpException');
$this->adapter->check($data, $headers); $this->adapter->check($data, $headers, $handler);
curl_close($handler);
} }
public function testExecute() public function testExecute()
......
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