From a486962f8d29e83c86f2368a89efbd8592eb6587 Mon Sep 17 00:00:00 2001 From: php-curl-class Date: Mon, 19 Aug 2013 12:08:50 -0700 Subject: [PATCH] Add cookie test --- tests/run.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/run.php b/tests/run.php index aedef23..c6b1b91 100644 --- a/tests/run.php +++ b/tests/run.php @@ -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'); + } }