public function testDispatchCall()
 {
     $dispatcher = \Mockery::mock(EventDispatcherInterface::class)->shouldReceive('dispatch')->times(4)->getMock();
     $calculator = new BaseCalculator(['handler' => $this->getCalculatorHandlerMock(), 'dispatcher' => $dispatcher]);
     $package = \Mockery::mock(Package::class);
     $calculator->setDispatcher($dispatcher);
     $calculator->calculate($package);
 }
 public function testDispatchCall()
 {
     $dispatcher = \Mockery::mock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface')->shouldReceive('dispatch')->times(4)->getMock();
     $calculator = new BaseCalculator(['handler' => $this->getCalculatorHandlerMock(), 'dispatcher' => $dispatcher]);
     $package = \Mockery::mock('EsteIt\\ShippingCalculator\\Model\\PackageInterface');
     $calculator->setDispatcher($dispatcher);
     $calculator->calculate($package);
 }