Completed
Push — master ( 9def54...8aa014 )
by Daniel
02:56
created

ConnectionManagerTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetDefault() 0 5 1
A testGetDefaultChanged() 0 6 1
1
<?php
2
3
namespace Cmobi\RabbitmqBundle\Tests\Connection;
4
5
use Cmobi\RabbitmqBundle\Connection\ConnectionManager;
6
use Cmobi\RabbitmqBundle\Tests\BaseTestCase;
7
8
class ConnectionManagerTest extends BaseTestCase
9
{
10
    public function testGetDefault()
11
    {
12
        $manager = new ConnectionManager([]);
13
        $this->assertEquals('default', $manager->getDefault());
14
    }
15
16
    public function testGetDefaultChanged()
17
    {
18
        $manager = new ConnectionManager([]);
19
        $manager->setDefault('changed');
20
        $this->assertEquals('changed', $manager->getDefault());
21
    }
22
}