yield [true
];
yield [false
];
} /**
* @dataProvider provideRunWithResetServicesOption
*/
public function testRunWithResetServicesOption(bool
$shouldReset) { $envelope =
new Envelope(new \
stdClass());
$receiver =
new ResettableDummyReceiver([ [$envelope],
[/* idle */
],
[$envelope,
$envelope],
]);
$msgCount = 3;
$receiverLocator =
$this->
createMock(ContainerInterface::
class);
$receiverLocator->
expects($this->
once())->
method('has'
)->
with('dummy-receiver'
)->
willReturn(true
);
$receiverLocator->
expects($this->
once())->
method('get'
)->
with('dummy-receiver'
)->
willReturn($receiver);
$bus =
$this->
createMock(RoutableMessageBus::
class);