Esempio n. 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);
 }
 public function __construct($name, $class)
 {
     parent::__construct("{$name} is not a Database ({$class})");
     Headers::save(Headers::set_response('500'));
     $this->display_error_page();
 }
Esempio n. 3
0
 public function __construct($type)
 {
     parent::__construct("{$type} is not a valid type of route");
     Headers::save(Headers::set_response('500'));
 }
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct("Headers Type incorrect");
     Headers::save(Headers::set_response('500'));
 }
Esempio n. 5
0
 public function testMustBeFalse()
 {
     $header = \Headers::set_response('404');
     $header403 = "HTTP/1.1 403 Page Not Found";
     $this->assertFalse($header === $header403);
 }