SymfonyAppTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 5 1
A testCompile() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of the LoopBackApiBundle package.
5
 *
6
 * (c) Théo FIDRY <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Fidry\LoopBackApiBundle\Tests\Fixtures;
13
14
use Symfony\Bundle\FrameworkBundle\Console\Application;
15
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
16
use Symfony\Component\Console\Tester\CommandTester;
17
18
/**
19
 * @author Théo FIDRY <[email protected]>
20
 */
21
class SymfonyAppTest extends KernelTestCase
22
{
23
    /**
24
     * @var Application
25
     */
26
    private $application;
27
28
    protected function setUp()
29
    {
30
        self::bootKernel();
31
        $this->application = new Application(self::$kernel);
32
    }
33
34
    public function testCompile()
35
    {
36
        $command = $this->application->find('help');
37
        $commandTester = new CommandTester($command);
38
        $commandTester->execute([], ['interactive' => false]);
39
        $this->assertTrue(true);
40
    }
41
}
42