コード例 #1
0
ファイル: Queue.php プロジェクト: thomasvargiu/amqpal
 /**
  * Get the Connection object in use
  *
  * @return ConnectionInterface
  */
 public function getConnection()
 {
     return $this->channel->getConnection();
 }
コード例 #2
0
ファイル: ChannelTest.php プロジェクト: thomasvargiu/amqpal
 public function testGetConnection()
 {
     $connection = $this->prophesize(Connection::class);
     $adapter = $this->prophesize(PhpAmqpLib::class);
     $channel = new Channel();
     $channel->setConnection($connection->reveal());
     static::assertSame($connection->reveal(), $channel->getConnection());
 }