Sets the connection handler instance to use.
public setConnectionHandler ( Phergie_Connection_Handler $handler ) : Phergie_Bot | ||
$handler | Phergie_Connection_Handler | Connection handler instance |
return | Phergie_Bot | Provides a fluent interface |
/** * 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()); }