protected function setUp()
 {
     parent::setUp();
     $_SERVER['REQUEST_METHOD'] = 'GET';
     $_SERVER['REQUEST_URI'] = '/';
     $this->resetRouter();
 }
 protected function tearDown()
 {
     ini_set('xmlrpc_errors', 0);
     ini_set('html_errors', 0);
     ini_set('error_log', $this->errorLog);
     ini_set('log_errors', $this->shouldLogErrors);
     ini_set('display_errors', $this->shouldDisplayErrors);
     restore_error_handler();
     if (file_exists(dirname(__DIR__) . '/data/tmp/log')) {
         unlink(dirname(__DIR__) . '/data/tmp/log');
     }
     if (file_exists(dirname(__DIR__) . '/data/tmp/logger_log')) {
         unlink(dirname(__DIR__) . '/data/tmp/logger_log');
     }
     if (file_exists(dirname(__DIR__) . '/log/app.log')) {
         unlink(dirname(__DIR__) . '/log/app.log');
     }
     error_reporting($this->errorReportingBitmask);
     parent::tearDown();
 }
 protected function setUp()
 {
     parent::setUp();
     $_SERVER['REQUEST_METHOD'] = 'GET';
     Config::set('hyperframework.web.router_class', 'Hyperframework\\Web\\Test\\FakeRouter');
 }