예제 #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);
     }
 }
예제 #2
0
파일: NotFound.php 프로젝트: opis/http
 public function __construct($message = '', array $headers = array())
 {
     parent::__construct(404, $message, $headers);
 }
예제 #3
0
 public function __construct($message = null)
 {
     parent::__construct(500, $message);
 }