Ejemplo n.º 1
0
 protected function setUp()
 {
     parent::setUp();
     $_SERVER['REQUEST_METHOD'] = 'GET';
     $_SERVER['REQUEST_URI'] = '/';
     $this->resetRouter();
 }
 protected function setUp()
 {
     parent::setUp();
     $this->errorReportingBitmask = error_reporting();
     error_reporting(E_ALL);
     $this->shouldLogErrors = ini_get('log_errors');
     $this->errorLog = ini_get('error_log');
     $this->shouldDisplayErrors = ini_get('display_errors');
     ini_set('display_errors', 1);
     ini_set('log_errors', 1);
     ini_set('error_log', dirname(__DIR__) . '/data/tmp/log');
     Config::set('hyperframework.logging.log_path', dirname(__DIR__) . '/data/tmp/logger_log');
     $engine = $this->getMock('Hyperframework\\Web\\ResponseEngine');
     $engine->method('headersSent')->willReturn(false);
     Response::setEngine($engine);
 }
 protected function setUp()
 {
     parent::setUp();
     $_SERVER['REQUEST_METHOD'] = 'GET';
     Config::set('hyperframework.web.router_class', 'Hyperframework\\Web\\Test\\FakeRouter');
 }