Completed
Branch feature/add-scrutinizer (27b569)
by Matthias
02:05
created

ApplicationTest::testCheckCommandExists()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 5
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace ComposerRequireCheckerTest\Cli;
4
5
6
use ComposerRequireChecker\Cli\Application;
7
use Symfony\Component\Console\Command\Command;
8
9
class ApplicationTest extends \PHPUnit_Framework_TestCase
10
{
11
12
    /**
13
     * @var Application
14
     */
15
    private $application;
16
17
    public function setUp()
18
    {
19
        $this->application = new Application();
20
    }
21
22
    public function testCheckCommandExists()
23
    {
24
        $this->assertTrue($this->application->has('check'));
25
        $this->assertInstanceOf(Command::class, $this->application->get('check'));
26
    }
27
28
}