Пример #1
0
 public function __construct($path, $method, $error)
 {
     $this->_path = $path;
     $this->_method = $method;
     $this->_error = $error;
     $this->_err_message = Headers::set_response($error);
     $this->_resp_message = Headers::get_response($error);
     parent::__construct($error);
     Headers::save($this->_err_message);
 }
Пример #2
0
 public function __construct($name, $class)
 {
     parent::__construct("{$name} is not a Database ({$class})");
     Headers::save(Headers::set_response('500'));
     $this->display_error_page();
 }
Пример #3
0
 public function __construct($type)
 {
     parent::__construct("{$type} is not a valid type of route");
     Headers::save(Headers::set_response('500'));
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct("Headers Type incorrect");
     Headers::save(Headers::set_response('500'));
 }
Пример #5
0
 public function testMustBeFalse()
 {
     $header = \Headers::set_response('404');
     $header403 = "HTTP/1.1 403 Page Not Found";
     $this->assertFalse($header === $header403);
 }