mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-11 19:06:36 +00:00
Add Referrer test
This commit is contained in:
@@ -53,4 +53,10 @@ class CurlTest extends PHPUnit_Framework_TestCase {
|
||||
$this->assertTrue($json->username === $username);
|
||||
$this->assertTrue($json->password === $password);
|
||||
}
|
||||
|
||||
public function testReferrer() {
|
||||
$test = new Test();
|
||||
$test->curl->setReferrer('myreferrer');
|
||||
$this->assertTrue($test->server('GET', 'server', 'HTTP_REFERER') === 'myreferrer');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user