Пример #1
0
 protected function setUp()
 {
     parent::setUp();
     if ($this->needHttpAuth()) {
         $this->request->setOptions(array('httpauthtype' => HTTP_AUTH_BASIC, 'httpauth' => $this->application->config->get('web')->username . ':' . $this->application->config->get('web')->password));
     }
 }
Пример #2
0
 protected function setUp()
 {
     parent::setUp();
     $this->application->dispatcher->setResponse(new \Nano\Controller\Response\Test($this->application));
     $this->dispatcher = $this->application->dispatcher;
 }