Author: Phergie Development Team (team@phergie.org)
Beispiel #1
0
 /**
  * Tests that the event type can be changed.
  *
  * @return void
  */
 public function testSetType()
 {
     $type = 'foo';
     $this->event->setType($type);
     $this->assertEquals($type, $this->event->getType());
 }
Beispiel #2
0
 /**
  * Outputs a prompt when the bot receives an IRC event. 
  *
  * @param Phergie_Event_Abstract $event      Received event
  * @param Phergie_Connection     $connection Connection on which the 
  *        event was received
  *
  * @return void
  */
 public function onEvent(Phergie_Event_Abstract $event, Phergie_Connection $connection)
 {
     $host = $connection->getHostmask()->getHost();
     $this->console($host . ' <- ' . $event->getRawData());
 }