Completed
Push — master ( ccbe64...bcccab )
by Thomas Mauro
05:56
created

AMQPTest::testCreateChannelWithResource()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
rs 9.4285
cc 1
eloc 9
nc 1
nop 0
1
<?php
2
3
namespace AMQPAL\Adapter\AMQP;
4
5
use AMQPAL\Options;
6
use Prophecy\Argument;
7
8
class AMQPTest extends \PHPUnit_Framework_TestCase
9
{
10
    public function testConstructorWithConnectionResource()
11
    {
12
        $adapterConnection = $this->prophesize(\AMQPConnection::class);
13
        $adapter = new AMQP($adapterConnection->reveal());
14
15
        static::assertInstanceOf(Connection::class, $adapter->getConnection());
16
    }
17
}
18