public function testExceptInvalidChunkedBody() { try { Response::decodeChunkedBody($this->readResponse('response_deflate')); $this->fail('An expected exception was not thrown'); } catch (\Zend\Http\Exception $e) { // We are ok! } }