getId() public method

Return the user id used for connecting the session.
public getId ( ) : string
return string The user id.
示例#1
0
文件: BaseTest.php 项目: horde/horde
 public function testMethodGetidGetsDelegated()
 {
     $session = $this->getMock('Horde_Kolab_Session');
     $session->expects($this->once())->method('getId')->will($this->returnValue('1'));
     $anonymous = new Horde_Kolab_Session_Decorator_Base($session);
     $anonymous->getId();
 }