public function testDispatch()
 {
     $mockEventName = 'a.b-c.d-e';
     $mockEvent = Mockery::mock(Event::class);
     $this->mockOriginalDispatcher->shouldReceive('dispatch')->with($mockEventName, $mockEvent);
     $this->mockStatsdClient->shouldReceive('increment')->with('a-b-c-d-e');
     $this->dispatcher->dispatch($mockEventName, $mockEvent);
 }
 /**
  * {@inheritdoc}
  */
 public function dispatch($eventName, Event $event = null)
 {
     $this->statsdClient->increment(str_replace('.', '-', $eventName));
     return $this->originalDispatcher->dispatch($eventName, $event);
 }