setEventHandler() public method

Sets the event handler instance to use.
public setEventHandler ( Phergie_Event_Handler $handler ) : Phergie_Bot
$handler Phergie_Event_Handler Event handler instance
return Phergie_Bot Provides a fluent interface
Beispiel #1
0
 /**
  * Injects all dependencies into the bot instance being tested.
  *
  * @return void
  */
 private function injectDependencies()
 {
     $this->bot->setConfig($this->getMockConfig());
     $this->bot->setDriver($this->getMockDriver());
     $this->bot->setConnectionHandler($this->getMockConnectionHandler());
     $this->bot->setUi($this->getMockUi());
     $this->bot->setPluginHandler($this->getMockPluginHandler());
     $this->bot->setProcessor($this->getMockProcessor($this->bot));
     $this->bot->setEventHandler($this->getMockEventHandler());
 }