returnResponse(true); $this->_response = new Zend_Controller_Response_Http(); Application::$front->setResponse($this->_response); // guest user $users = new Users_Model_Users(); $user = $users->createRow(); Zend_Registry::set('user', $user); } public function testIndexNoIdentityAction() { Application::$front->setRequest(new TestRequest('/identity')); try { Application::dispatch(); } catch (Monkeys_BadUrlException $e) { $this->assertTrue(true); return; } $this->fail('Expected Monkeys_BadUrlException was not raised'); } public function testIdAction() { Application::$front->setRequest(new TestRequest('/identity/whateva')); $_SERVER['SCRIPT_URI'] = 'http://localhost/communityid/identity/whateva'; Application::dispatch(); $this->assertContains('', $this->_response->getBody()); $this->assertContains('