From 47a8b9192611e3aa3c93f481f9c321a16707df77 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Sat, 16 Feb 2013 13:06:13 +0100 Subject: [PATCH] added another HTTPClient test --- _test/tests/inc/httpclient_http.test.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 @@ -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 */ -- GitLab