Completed
Pull Request — master (#298)
by
unknown
03:49
created

DbalReaderFactorySpec::it_is_initializable()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace spec\Ddeboer\DataImport\Reader\Factory;
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('Ddeboer\DataImport\Reader\Factory\DbalReaderFactory');
18
    }
19
20
    function it_creates_a_reader()
21
    {
22
        $this->getReader('SQL', [])->shouldHaveType('Ddeboer\DataImport\Reader\DbalReader');
23
    }
24
}
25