コード例 #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
ファイル: Exceptions.php プロジェクト: rumblesan/Minimal-VC
 public function __construct($message = null)
 {
     parent::__construct(500, $message);
 }