public function testMethodGetmailGetsDelegated() { $session = $this->getMock('Horde_Kolab_Session'); $session->expects($this->once())->method('getMail')->will($this->returnValue('1')); $anonymous = new Horde_Kolab_Session_Decorator_Base($session); $anonymous->getMail(); }