Completed
Pull Request — master (#183)
by Danny
05:29
created

ApplicationTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A testConstructor() 0 7 1
A testGetConfiguration() 0 6 1
A testGetIssueCollector() 0 6 1
1
<?php
2
3
namespace Tests\PHPSA;
4
5
use PHPSA\Application;
6
7
class ApplicationTest extends TestCase
8
{
9
    /**
10
     * @covers \PHPSA\Application::__construct
11
     */
12
    public function testConstructor()
13
    {
14
        $application = new Application();
15
16
        $this->assertInstanceOf('\PHPSA\Application', $application);
17
        $this->assertInstanceOf('\Symfony\Component\Console\Application', $application);
18
    }
19
20
    /**
21
     * @covers \PHPSA\Application::getConfiguration
22
     */
23
    public function testGetConfiguration()
24
    {
25
        $application = new Application();
26
27
        $this->assertInstanceOf('\PHPSA\Configuration', $application->getConfiguration());
28
    }
29
30
    /**
31
     * @covers \PHPSA\Application::getIssuesCollector
32
     */
33
    public function testGetIssueCollector()
34
    {
35
        $application = new Application();
36
37
        $this->assertInstanceOf('\PHPSA\IssuesCollector', $application->getIssuesCollector());
38
    }
39
}
40