[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 require_once (__DIR__ . '/httpclient_mock.php'); 4 5 class httpclient_http_proxy_test extends DokuWikiTest { 6 protected $url = 'http://eu.httpbin.org/user-agent'; 7 8 /** 9 * @group internet 10 */ 11 function test_simpleget(){ 12 $http = new HTTPMockClient(); 13 // proxy provided by Andrwe Lord Weber <dokuwiki@andrwe.org> 14 $http->proxy_host = 'proxy.andrwe.org'; 15 $http->proxy_port = 8080; 16 17 $data = $http->get($this->url); 18 $this->assertFalse($data === false, $http->errorInfo($this->url)); 19 $this->assertTrue(strpos($data,'DokuWiki') !== false, 'response content'); 20 } 21 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body