Skip to content

Commit 0e11e77

Browse files
committed
Merged 2.1 changes to master
2 parents 416d85f + 1c6e1aa commit 0e11e77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Codeception/Module/AMQP.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Codeception\TestInterface;
77
use Exception;
88
use PhpAmqpLib\Channel\AMQPChannel;
9-
use PhpAmqpLib\Connection\AMQPConnection;
9+
use PhpAmqpLib\Connection\AMQPStreamConnection;
1010
use PhpAmqpLib\Message\AMQPMessage;
1111
use PhpAmqpLib\Exception\AMQPProtocolChannelException;
1212

@@ -50,7 +50,7 @@
5050
*
5151
* ## Public Properties
5252
*
53-
* * connection - AMQPConnection - current connection
53+
* * connection - AMQPStreamConnection - current connection
5454
*
5555
* @since 1.1.2
5656
@@ -68,7 +68,7 @@ class AMQP extends CodeceptionModule
6868
];
6969

7070
/**
71-
* @var AMQPConnection
71+
* @var AMQPStreamConnection
7272
*/
7373
public $connection;
7474

@@ -88,7 +88,7 @@ public function _initialize()
8888
$vhost = $this->config['vhost'];
8989

9090
try {
91-
$this->connection = new AMQPConnection($host, $port, $username, $password, $vhost);
91+
$this->connection = new AMQPStreamConnection($host, $port, $username, $password, $vhost);
9292
} catch (Exception $e) {
9393
throw new ModuleException(__CLASS__, $e->getMessage() . ' while establishing connection to MQ server');
9494
}

0 commit comments

Comments
 (0)