summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-02-16 13:06:13 +0100
committerAndreas Gohr <andi@splitbrain.org>2013-02-16 13:06:13 +0100
commit47a8b9192611e3aa3c93f481f9c321a16707df77 (patch)
treecf339d92e60b82f77c6ba86342c0e0967afe9bf9 /_test
parent78361632ede7770a5ee42b88bed0a9506b1fcb66 (diff)
downloadrpg-47a8b9192611e3aa3c93f481f9c321a16707df77.tar.gz
rpg-47a8b9192611e3aa3c93f481f9c321a16707df77.tar.bz2
added another HTTPClient test
Diffstat (limited to '_test')
-rw-r--r--_test/tests/inc/httpclient_http.test.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/_test/tests/inc/httpclient_http.test.php b/_test/tests/inc/httpclient_http.test.php
index 9959a1f06..252eb6b65 100644
--- a/_test/tests/inc/httpclient_http.test.php
+++ b/_test/tests/inc/httpclient_http.test.php
@@ -134,6 +134,19 @@ class httpclient_http_test extends DokuWikiTest {
/**
* @group internet
*/
+ function test_maxbodyok(){
+ $http = new HTTPClient();
+ $http->max_bodysize = 500*1024;
+ $data = $http->get($this->server.'/stream/5');
+ $this->assertTrue($data !== false, 'HTTP response');
+ $http->max_bodysize_abort = false;
+ $data = $http->get($this->server.'/stream/5');
+ $this->assertTrue($data !== false, 'HTTP response');
+ }
+
+ /**
+ * @group internet
+ */
function test_basicauth(){
$http = new HTTPClient();
$http->user = 'user';