Rewrite HttpClientTest to avoid removed features
Rewrite HttpClientTest to avoid removed features

This test was heavily using internal features of PHPUnit which
have since been removed

Refactored it to use regular mocks, which should be more resilient
to change

bugsnag/bugsnag-php,bugsnag/bugsnag-php,bugsnag/bugsnag-php