public function testRefreshFail() { $this->authAdapter->setIdentity('demo')->setCredential(md5('demo')); $authResponse = $this->auth->authenticate(); $this->assertTrue($authResponse->isValid(), $authResponse->getMessages()); $this->assertTrue($this->auth->hasIdentity()); $this->authAdapter->setSessionId('inValid'); $this->assertInstanceOf('Zend_Auth_Result', $authResponse = $this->auth->refresh()); $this->assertFalse($authResponse->isValid(), $authResponse->getMessages()); }