Mockery specifying expected arguments for multiple calls Mockery specifying expected arguments for multiple calls symfony symfony

Mockery specifying expected arguments for multiple calls


Well that was fast ;P Apparently you can do this and it works just fine:

$this->eventDispatcher    ->shouldReceive('dispatch')    ->with(Events::SELECT,\Mockery::type('\Not\Really\A\Namespace\Event'));$this->eventDispatcher    ->shouldReceive('dispatch')    ->with(Events::ACTIVITY,\Mockery::type('\Not\Really\A\Namespace\Event');