/** * @param string $httpCode The HTTP code we want to test * @param string $expectedCode What we expect the result to be * * @dataProvider providerTestReturnOfHTTPStatusCodes */ public function testReturnOfHTTPStatusCodes($httpCode, $expectedCode) { $response = new Response($httpCode, ''); $statusCode = $response->http_status(); $this->assertEquals($statusCode, $expectedCode); }