Skip to content

Commit 4b8f6e0

Browse files
committed
Readd assertion testing cookie sent in request and received by server
1 parent 9d35fe5 commit 4b8f6e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/PHPCurlClass/PHPCurlClassTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,9 @@ public function testCookieFile()
10311031
$test = new Test();
10321032
$test->curl->setOpt(CURLOPT_COOKIEFILE, $cookie_file);
10331033
$this->assertEquals($cookie_data, file_get_contents($test->curl->getOpt(CURLOPT_COOKIEFILE)));
1034+
$this->assertEquals('yum', $test->server('cookie', 'GET', array(
1035+
'key' => 'mycookie',
1036+
)));
10341037

10351038
unlink($cookie_file);
10361039
$this->assertFalse(file_exists($cookie_file));

0 commit comments

Comments
 (0)