Readd assertion testing cookie sent in request and received by server

This commit is contained in:
Zach Borboa
2016-12-15 03:17:04 -08:00
parent 9d35fe5b25
commit 4b8f6e0082
+3
View File
@@ -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));