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

FeatureTest::test_facade_aware()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 12
rs 10
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