diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-02-09 10:08:48 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-02-09 10:08:48 +0100 |
commit | 95e6ded1b26c14b1ef55699b171ce422827364b1 (patch) | |
tree | c440e43ee53000aeb1cdd37616f7d145ae39399a /_test/tests/inc/httpclient_http_proxy.test.php | |
parent | 1eb1257b8846c2228e3f3bb9a3afb5398df3b4fe (diff) | |
download | rpg-95e6ded1b26c14b1ef55699b171ce422827364b1.tar.gz rpg-95e6ded1b26c14b1ef55699b171ce422827364b1.tar.bz2 |
more robust HTTP testing
connections are now retried after timeout and failing connections will
be marked as skipped instead of failing. This should reduce false alarms
on travis
Diffstat (limited to '_test/tests/inc/httpclient_http_proxy.test.php')
-rw-r--r-- | _test/tests/inc/httpclient_http_proxy.test.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/_test/tests/inc/httpclient_http_proxy.test.php b/_test/tests/inc/httpclient_http_proxy.test.php index 4aa039fcc..61228ad94 100644 --- a/_test/tests/inc/httpclient_http_proxy.test.php +++ b/_test/tests/inc/httpclient_http_proxy.test.php @@ -1,5 +1,7 @@ <?php +require_once (__DIR__ . '/httpclient_mock.php'); + class httpclient_http_proxy_test extends DokuWikiTest { protected $url = 'http://test.dokuwiki.org/README'; @@ -7,7 +9,7 @@ class httpclient_http_proxy_test extends DokuWikiTest { * @group internet */ function test_simpleget(){ - $http = new HTTPClient(); + $http = new HTTPMockClient(); // proxy provided by Andrwe Lord Weber <dokuwiki@andrwe.org> $http->proxy_host = 'proxy.andrwe.org'; $http->proxy_port = 8080; |