public function setUp() { $this->mapperMock = $this->getMock('VoidTest\\Account\\Mapper', array('find', 'save')); Account::setMapper($this->mapperMock); $this->authMock = $this->getMock('Zend\\Authentication\\AuthenticationService', array('hasIdentity', 'authenticate', 'clearIdentity', 'getIdentity')); Account::setAuthenticationService($this->authMock); }