Ejemplo n.º 1
0
 /**
  * @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);
     }
 }
Ejemplo n.º 2
0
 public function __construct($message = '', array $headers = array())
 {
     parent::__construct(404, $message, $headers);
 }
Ejemplo n.º 3
0
 public function __construct($message = null)
 {
     parent::__construct(500, $message);
 }