Exemple #1
0
 public function testParamsOnPublishMessage()
 {
     $this->exchangeMock->expects($this->once())->method('publish')->with($this->equalTo('message'), $this->equalTo('routeKey'), $this->equalTo('flag'), $this->equalTo(['param1' => 'value1']));
     $p = new Producer($this->channelMock, $this->exchangeMock);
     $p->setExchangeOptions(['name' => 'myExchange', 'type' => 'someType']);
     $p->publish('message', 'routeKey', 'flag', ['param1' => 'value1']);
 }