Exemple #1
0
 /**
  * @dataProvider exchangeFlagProvider
  */
 public function testFlagOptions($passive, $durable, $autoDelete, $noWait, $internal, $flag)
 {
     $p = new Producer($this->channelMock, $this->exchangeMock);
     $options = ['name' => 'test', 'type' => 'direct', 'passive' => $passive, 'durable' => $durable, 'auto_delete' => $autoDelete, 'nowait' => $noWait, 'internal' => $internal];
     $p->setExchangeOptions($options);
     $this->assertEquals($flag, $p->getFlagsFromOptions());
 }