getProcessor() public method

Returns a processer instance, creating one if none exists.
public getProcessor ( ) : Phergie_Process_Abstract
return Phergie_Process_Abstract
Beispiel #1
0
 /**
  * Tests that a custom event procesor can be set via configuration.
  *
  * @return void
  */
 public function testSetProcessor()
 {
     $config = $this->getMockConfig();
     $this->bot->setConfig($config);
     $processor = $this->getMockForAbstractClass('Phergie_Process_Abstract', array($this->bot));
     $this->bot->setProcessor($processor);
     $this->assertSame($processor, $this->bot->getProcessor());
 }