Completed
Push — master ( a29d2d...4681dd )
by Hannes
10:53 queued 08:08
created

ParserFactorySpec   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 17
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace spec\byrokrat\autogiro;
6
7
use byrokrat\autogiro\ParserFactory;
8
use byrokrat\autogiro\Parser;
9
use PhpSpec\ObjectBehavior;
10
11
class ParserFactorySpec extends ObjectBehavior
12
{
13
    function it_is_initializable()
14
    {
15
        $this->shouldHaveType(ParserFactory::CLASS);
16
    }
17
18
    function it_creates_parsers()
19
    {
20
        $this->createParser()->shouldHaveType(Parser::CLASS);
21
    }
22
23
    function it_creates_parses_with_no_external_processors()
24
    {
25
        $this->createParser(ParserFactory::NO_EXTERNAL_PROCESSORS)->shouldHaveType(Parser::CLASS);
26
    }
27
}
28