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 tearDown() { unset($this->dispatcher); parent::tearDown(); }