public function setEventTemplate(EventInterface $event) { $this->event = $event; return $this; }
/** * Set up the event manager */ public function setUp() { $this->request = $this->getMock('Imbo\\Http\\Request\\Request'); $this->event = new Event($this, array('request' => $this->request)); $this->manager = new EventManager(); $this->manager->setEventTemplate($this->event); }