Horde_Kolab_Session_Decorator_Base::getUid PHP Method

getUid() public method

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

Usage Example

Exemplo n.º 1
0
 public function testMethodGetuidGetsDelegated()
 {
     $session = $this->getMock('Horde_Kolab_Session');
     $session->expects($this->once())->method('getUid')->will($this->returnValue('1'));
     $anonymous = new Horde_Kolab_Session_Decorator_Base($session);
     $anonymous->getUid();
 }