10 use PhpAmqpLib\Channel\AMQPChannel;
16 $bindingInstaller = $this->createMock(QueueConfigItemInterface::class);
18 $channel = $this->createMock(AMQPChannel::class);
20 $queue = $this->createMock(QueueConfigItemInterface::class);
21 $queue->expects($this->once())->method(
'getName')->willReturn(
'queue01');
22 $queue->expects($this->once())->method(
'isDurable')->willReturn(
true);
23 $queue->expects($this->once())->method(
'isAutoDelete')->willReturn(
false);
24 $queue->expects($this->once())->method(
'getArguments')->willReturn([
'some' =>
'value']);
26 $channel->expects($this->once())
27 ->method(
'queue_declare')
28 ->with(
'queue01',
false,
true,
false,
false,
false, [
'some' => [
'S',
'value']],
null);