Fix undefined index when running test suite

This commit is contained in:
Zach Borboa
2014-03-04 22:08:31 -08:00
parent a326392a0b
commit 97cd33cb5a
+3 -1
View File
@@ -500,7 +500,9 @@ class CurlTest extends PHPUnit_Framework_TestCase {
}
public function testClose() {
$curl = new Curl();
$test = new Test();
$curl = $test->curl;
$curl->setHeader('X-DEBUG-TEST', 'post');
$curl->post(Test::TEST_URL);
$this->assertTrue(is_resource($curl->curl));
$curl->close();