Test Failed
Pull Request — master (#6)
by mon
12:48
created

UpdateCommandTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testExecute() 0 14 1
1
<?php
2
3
namespace FileEye\MimeMap\test\Command;
4
5
use Symfony\Bundle\FrameworkBundle\Console\Application;
6
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
7
use Symfony\Component\Console\Tester\CommandTester;
8
9
class UpdateCommandTest extends KernelTestCase
10
{
11
    public function testExecute()
12
    {
13
        $kernel = static::createKernel();
14
        $application = new Application($kernel);
15
16
        $command = $application->find('update');
17
        $commandTester = new CommandTester($command);
18
        $commandTester->execute([
19
        ]);
20
21
        // the output of the command in the console
22
        $output = $commandTester->getDisplay();
23
        $this->assertContains('No changes', $output);
24
    }
25
}
26