AMQPTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 10
wmc 1
lcom 0
cbo 3
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstructorWithConnectionResource() 0 7 1
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