mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 04:01:47 +00:00
Add cookie test
This commit is contained in:
@@ -62,4 +62,10 @@ class CurlTest extends PHPUnit_Framework_TestCase {
|
||||
$test->curl->setReferrer('myreferrer');
|
||||
$this->assertTrue($test->server('GET', 'server', 'HTTP_REFERER') === 'myreferrer');
|
||||
}
|
||||
|
||||
public function testCookies() {
|
||||
$test = new Test();
|
||||
$test->curl->setCookie('mycookie', 'yum');
|
||||
$this->assertTrue($test->server('GET', 'cookie', 'mycookie') === 'yum');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user