Horde_Kolab_Session_Decorator_Base::getName PHP Method

getName() public method

Return the users name.
public getName ( ) : string
return string The users name.
    public function getName()
    {
        return $this->_session->getName();
    }

Usage Example

Beispiel #1
0
 public function testMethodGetnameGetsDelegated()
 {
     $session = $this->getMock('Horde_Kolab_Session');
     $session->expects($this->once())->method('getName')->will($this->returnValue('1'));
     $anonymous = new Horde_Kolab_Session_Decorator_Base($session);
     $anonymous->getName();
 }