getName() public method

public getName ( )
Exemplo n.º 1
0
 private function fireEvent(Event $event)
 {
     foreach ($this->getAnyListeners($event->getName()) as $listener) {
         $listener->handle($event);
     }
 }
 function it_dispatches_with_lazy_listeners(Event $event)
 {
     $this->addLazyListener('EventName', 'BigName\\EventDispatcher\\Stubs\\StubListener');
     $event->getName()->willReturn('EventName');
     $this->dispatch($event);
 }