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

AMQPTest::testCreateChannel()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 24
Code Lines 17

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 24
rs 8.9713
cc 1
eloc 17
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