function it_dispatches_with_lazy_listeners(Event $event)
 {
     $this->addLazyListener('EventName', 'BigName\\EventDispatcher\\Stubs\\StubListener');
     $event->getName()->willReturn('EventName');
     $this->dispatch($event);
 }
 private function fireEvent(Event $event)
 {
     foreach ($this->getAnyListeners($event->getName()) as $listener) {
         $listener->handle($event);
     }
 }
 /**
  * @param IframeGeneratedEvent $event
  */
 public function handle(Event $event)
 {
     $this->promise->show($event->getIframe());
 }