DbalReaderFactorySpec   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A let() 0 4 1
A it_is_initializable() 0 4 1
A it_creates_a_reader() 0 4 1
1
<?php
2
3
namespace spec\Port\Dbal;
4
5
use Doctrine\DBAL\Connection;
6
use PhpSpec\ObjectBehavior;
7
8
class DbalReaderFactorySpec extends ObjectBehavior
9
{
10
    function let(Connection $dbal)
11
    {
12
        $this->beConstructedWith($dbal);
13
    }
14
15
    function it_is_initializable()
16
    {
17
        $this->shouldHaveType('Port\Dbal\DbalReaderFactory');
18
    }
19
20
    function it_creates_a_reader()
21
    {
22
        $this->getReader('SQL', [])->shouldHaveType('Port\Dbal\DbalReader');
23
    }
24
}
25