/** * @dataProvider getHtmlProvider */ public function testGetHtml(array $expected, $content, $header) { $httpError = new HttpError(500, $content, $header); $errorHtml = $httpError->getHtml(); foreach ($expected as $key => $html) { $this->assertContains($html, $errorHtml, $key); } }