getHostmask() public method

Returns the hostmask representing the originating user.
public getHostmask ( ) : Phergie_Event_Request | null
return Phergie_Event_Request | null Hostmask or NULL if none was set
Beispiel #1
0
 /**
  * Tests that the hostmask associated with the event can be changed.
  *
  * @return void
  */
 public function testSetHostmask()
 {
     $hostmask = $this->getMock('Phergie_Hostmask', array(), array('nick', 'username', 'host'));
     $this->event->setHostmask($hostmask);
     $this->assertSame($hostmask, $this->event->getHostmask());
 }