ApplicationSpec   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 4 1
A it_is_a_Symfony_Console_Application() 0 4 1
A it_is_called_PhpEws() 0 4 1
A it_is_versioned() 0 4 1
1
<?php
2
3
namespace spec\PhpEws\Console;
4
5
use PhpSpec\ObjectBehavior;
6
use Prophecy\Argument;
7
8
class ApplicationSpec extends ObjectBehavior
9
{
10
    function it_is_initializable()
11
    {
12
        $this->shouldHaveType('PhpEws\Console\Application');
13
    }
14
15
    function it_is_a_Symfony_Console_Application()
16
    {
17
        $this->shouldHaveType('Symfony\Component\Console\Application');
18
    }
19
20
    function it_is_called_PhpEws()
21
    {
22
        $this->getName()->shouldReturn('PhpEws');
23
    }
24
25
    function it_is_versioned()
26
    {
27
        $this->getVersion()->shouldNotReturn('UNKNOWN');
28
    }
29
}
30