getName() public method

public getName ( ) : string
return string username, defaults to empty string.
示例#1
0
 public function testName()
 {
     $user = new TUser(self::$mgr);
     $user->setName('joe');
     self::assertEquals('joe', $user->getName());
 }