/**
  * @return EventProxyStrategy
  */
 protected function buildEventStrategy()
 {
     $this->event = new EventSenderSpy();
     $eventStrategy = new EventProxyStrategy();
     $eventStrategy->setEvent($this->event);
     $this->eventFactory = new EventFactorySpy();
     $eventStrategy->setEventFactory($this->eventFactory);
     $this->proxyStrategyBagFactory->setEventStrategy($eventStrategy);
     $this->proxyStrategyRequestFactory->setEventProxyStrategyRequestBuilder(new EventProxyStrategyRequestBuilderImpl());
 }
Exemplo n.º 2
0
 /**
  * @return EventProxyStrategy
  */
 protected function buildEventStrategy()
 {
     $eventStrategy = new EventProxyStrategy();
     $eventStrategy->setEvent($this->event);
     $eventStrategy->setEventFactory($this->eventFactory);
     return $eventStrategy;
 }