Completed
Branch master (53cbf4)
by Matthias
02:01
created

ApplicationTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testCheckCommandExists() 0 5 1
1
<?php
2
3
namespace ComposerRequireCheckerTest\Cli;
4
5
6
use ComposerRequireChecker\Cli\Application;
7
use PHPUnit\Framework\TestCase;
8
use Symfony\Component\Console\Command\Command;
9
10
class ApplicationTest extends TestCase
11
{
12
13
    /**
14
     * @var Application
15
     */
16
    private $application;
17
18
    public function setUp()
19
    {
20
        $this->application = new Application();
21
    }
22
23
    public function testCheckCommandExists()
24
    {
25
        $this->assertTrue($this->application->has('check'));
26
        $this->assertInstanceOf(Command::class, $this->application->get('check'));
27
    }
28
29
}