/** * @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); } }
public function __construct($message = '', array $headers = array()) { parent::__construct(404, $message, $headers); }
public function __construct($message = null) { parent::__construct(500, $message); }