Exemple #1
0
 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());
 }