diff options
author | Tom N Harris <tnharris@whoopdedo.org> | 2012-06-19 03:17:21 -0400 |
---|---|---|
committer | Tom N Harris <tnharris@whoopdedo.org> | 2012-06-19 03:17:21 -0400 |
commit | d37a395509092f21060e2a042a2be0ea759f6d0b (patch) | |
tree | 915d37b23f41215d01abd54e60e930023254b69b | |
parent | 62699eac09eab66c5c19413bf629daf9d5d6247d (diff) | |
download | rpg-d37a395509092f21060e2a042a2be0ea759f6d0b.tar.gz rpg-d37a395509092f21060e2a042a2be0ea759f6d0b.tar.bz2 |
Unit test for HTTPClient chunked encoding
-rw-r--r-- | _test/tests/inc/httpclient_http.test.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/_test/tests/inc/httpclient_http.test.php b/_test/tests/inc/httpclient_http.test.php index 9cae3736a..cf8137152 100644 --- a/_test/tests/inc/httpclient_http.test.php +++ b/_test/tests/inc/httpclient_http.test.php @@ -176,5 +176,15 @@ class httpclient_http_test extends DokuWikiTest { $this->assertArrayHasKey('foo',$http->resp_headers); $this->assertEquals('bar',$http->resp_headers['foo']); } + + /** + * @group internet + */ + function test_chunked(){ + $http = new HTTPClient(); + $data = $http->get('http://whoopdedo.org/cgi-bin/chunked/2550'); + $this->assertFalse($data === false, 'HTTP response'); + $this->assertEquals(2550,strlen($data)); + } } //Setup VIM: ex: et ts=4 : |