mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 20:20:53 +00:00
Fix undefined index when running test suite
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user