mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-12 19:36:31 +00:00
Use Curl::setCookieFile()
This commit is contained in:
@@ -1029,7 +1029,7 @@ class CurlTest extends PHPUnit_Framework_TestCase
|
||||
file_put_contents($cookie_file, $cookie_data);
|
||||
|
||||
$test = new Test();
|
||||
$test->curl->setOpt(CURLOPT_COOKIEFILE, $cookie_file);
|
||||
$test->curl->setCookieFile($cookie_file);
|
||||
$this->assertEquals($cookie_data, file_get_contents($test->curl->getOpt(CURLOPT_COOKIEFILE)));
|
||||
$this->assertEquals('yum', $test->server('cookie', 'GET', array(
|
||||
'key' => 'mycookie',
|
||||
|
||||
Reference in New Issue
Block a user