Skip to content
Snippets Groups Projects
Commit 47a8b919 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

added another HTTPClient test

parent 78361632
No related branches found
No related tags found
No related merge requests found
......@@ -131,6 +131,19 @@ class httpclient_http_test extends DokuWikiTest {
$this->assertLessThanOrEqual(251,strlen($data));
}
/**
* @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
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment