Skip to content

Commit

Permalink
Unit test for HTTPClient chunked encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
whoopdedo committed Jun 19, 2012
1 parent 62699ea commit d37a395
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _test/tests/inc/httpclient_http.test.php
Expand Up @@ -176,5 +176,15 @@ function test_headers(){
$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 :

0 comments on commit d37a395

Please sign in to comment.