ApplicationTest::testGetConfiguration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
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
        self::assertTrue($application->has("check"));
17
        self::assertTrue($application->has("compile"));
18
        self::assertTrue($application->has("config:dump-reference"));
19
        self::assertTrue($application->has("config:dump-documentation"));
20
    }
21
22
   /**
23
     * @covers \PHPSA\Application::getConfiguration
24
     */
25
    public function testGetConfiguration()
26
    {
27
        $application = new Application();
28
29
        self::assertInstanceOf('\PHPSA\Configuration', $application->getConfiguration());
30
    }
31
32
    /**
33
     * @covers \PHPSA\Application::getIssuesCollector
34
     */
35
    public function testGetIssueCollector()
36
    {
37
        $application = new Application();
38
39
        self::assertInstanceOf('\PHPSA\IssuesCollector', $application->getIssuesCollector());
40
    }
41
}
42