Skip to content

Commit

Permalink
fixed tests for chunked encoding
Browse files Browse the repository at this point in the history
Looks like the domain we used to test this on expired.
  • Loading branch information
splitbrain committed May 7, 2018
1 parent d36a0dd commit d05f72d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _test/tests/inc/httpclient_http.test.php
Expand Up @@ -276,13 +276,13 @@ function test_headers(){
*/
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));
}

/**
Expand Down

0 comments on commit d05f72d

Please sign in to comment.