Passed
Push — feature/remove-setup-as-array ( 3bb37a...da7ebe )
by Jesús
04:16 queued 36s
created

FeatureTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 19
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_facade_aware() 0 12 1
A setUp() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature\Framework\FacadeAware;
6
7
use Gacela\Framework\Gacela;
8
use GacelaTest\Feature\Framework\FacadeAware\Module\UserInput\Command\TestHiCommand;
9
use PHPUnit\Framework\TestCase;
10
use Symfony\Component\Console\Input\InputInterface;
11
use Symfony\Component\Console\Output\BufferedOutput;
12
13
final class FeatureTest extends TestCase
14
{
15
    public function setUp(): void
16
    {
17
        Gacela::bootstrap(__DIR__);
18
    }
19
20
    public function test_facade_aware(): void
21
    {
22
        $output = new BufferedOutput();
23
24
        $hiCommand = new TestHiCommand();
25
26
        $hiCommand->run(
27
            $this->createStub(InputInterface::class),
28
            $output
29
        );
30
31
        self::assertSame('Hi', $output->fetch());
32
    }
33
}
34