blob: 81abdbca0054eb5893b70b4bdf90272f65eea967 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
class httpclient_http_proxy_test extends DokuWikiTest {
protected $url = 'http://www.dokuwiki.org/README';
/**
* @group internet
*/
function test_simpleget(){
$http = new HTTPClient();
$http->proxy_host = 'localhost'; //FIXME we need a public server
$http->proxy_port = 3128;
$data = $http->get($this->url);
$this->assertFalse($data === false, 'HTTP response');
$this->assertTrue(strpos($data,'DokuWiki') !== false, 'response content');
}
}
|