mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-01 21:27:06 +00:00
Readd assertion testing cookie sent in request and received by server
This commit is contained in:
@@ -1031,6 +1031,9 @@ class CurlTest extends PHPUnit_Framework_TestCase
|
||||
$test = new Test();
|
||||
$test->curl->setOpt(CURLOPT_COOKIEFILE, $cookie_file);
|
||||
$this->assertEquals($cookie_data, file_get_contents($test->curl->getOpt(CURLOPT_COOKIEFILE)));
|
||||
$this->assertEquals('yum', $test->server('cookie', 'GET', array(
|
||||
'key' => 'mycookie',
|
||||
)));
|
||||
|
||||
unlink($cookie_file);
|
||||
$this->assertFalse(file_exists($cookie_file));
|
||||
|
||||
Reference in New Issue
Block a user