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

fixed tests for chunked encoding

Looks like the domain we used to test this on expired.
parent d36a0ddb
No related branches found
No related tags found
No related merge requests found
......@@ -276,13 +276,13 @@ class httpclient_http_test extends DokuWikiTest {
*/
function test_chunked(){
$http = new HTTPMockClient();
$data = $http->get('http://whoopdedo.org/cgi-bin/chunked/2550');
$data = $http->get($this->server.'/stream-bytes/5000?chunk_size=250');
if($http->noconnection()) {
$this->markTestSkipped('connection timed out');
return;
}
$this->assertFalse($data === false, $http->errorInfo());
$this->assertEquals(2550,strlen($data));
$this->assertEquals(5000,strlen($data));
}
/**
......
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