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)); } }
protected function setUp() { parent::setUp(); $this->application->dispatcher->setResponse(new \Nano\Controller\Response\Test($this->application)); $this->dispatcher = $this->application->dispatcher; }