示例#1
0
 public function testSetReferer()
 {
     $url = 'http://bpteam.net/referer.php';
     $referer = 'http://iamreferer.net';
     $curl = new SingleCurl();
     $curl->setReferer($referer);
     $curl->load($url);
     $text = $curl->getAnswer();
     $this->assertRegExp('%iamreferer%ims', $text);
 }