Exemple #1
0
 public function testIsConnected()
 {
     $resource = $this->prophesize(AMQPChannel::class);
     $connection = $this->prophesize(Connection::class);
     $connection->isConnected()->shouldBeCalled()->willReturn(true);
     $channel = new Channel();
     $channel->setConnection($connection->reveal());
     $channel->setResource($resource->reveal());
     static::assertTrue($channel->isConnected());
 }