attach() public method

Attach events
public attach ( Zend\EventManager\EventManagerInterface $events ) : void
$events Zend\EventManager\EventManagerInterface Event manager
return void
Beispiel #1
0
 /**
  * test
  *
  * @return void
  */
 public function testattach()
 {
     $events = Mockery::mock('Zend\\EventManager\\EventManagerInterface');
     $events->shouldReceive('attach')->once()->with(MvcEvent::EVENT_ROUTE, array($this->object, 'onRoute'), -10);
     $this->object->attach($events);
 }