Passed
Pull Request — master (#64)
by Christian
02:02
created

testGetDefinitionClearsArguments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PHPCodeBrowser\Tests;
4
5
use PHPCodeBrowser\Application;
6
use PHPCodeBrowser\Command\RunCommand;
7
8
/**
9
 * Class ApplicationTest
10
 */
11
class ApplicationTest extends \PHPUnit\Framework\TestCase
12
{
13
    /**
14
     * @var Application
15
     */
16
    private $application;
17
18
    /**
19
     *
20
     */
21
    protected function setUp(): void
22
    {
23
        $this->application = new Application();
24
    }
25
26
    /**
27
     *
28
     */
29
    public function testCommand(): void
30
    {
31
        $this->assertInstanceOf(RunCommand::class, $this->application->get('phpcb'));
32
    }
33
34
    /**
35
     *
36
     */
37
    public function testGetDefinitionClearsArguments(): void
38
    {
39
        $this->assertEquals(0, $this->application->getDefinition()->getArgumentCount());
40
    }
41
}
42