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
{
$data = 'data';
$headers = array('X-dummy: data');
$handler = curl_init();
// this should be ok, no exception
$this->adapter->check($data, $headers);
$this->adapter->check($data, $headers, $handler);
$data = '';
$headers = array();
$this->setExpectedException('Solarium\Exception\HttpException');
$this->adapter->check($data, $headers);
$this->adapter->check($data, $headers, $handler);
curl_close($handler);
}
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