FeatureTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 11
c 0
b 0
f 0
dl 0
loc 26
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A test_without_prefix() 0 7 1
A setUp() 0 4 1
A test_with_prefix() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature\Framework\ModuleWithoutDependencies;
6
7
use Gacela\Framework\Bootstrap\GacelaConfig;
8
use Gacela\Framework\Gacela;
9
use PHPUnit\Framework\TestCase;
10
11
final class FeatureTest extends TestCase
12
{
13
    protected function setUp(): void
14
    {
15
        Gacela::bootstrap(__DIR__, static function (GacelaConfig $config): void {
16
            $config->resetInMemoryCache();
17
        });
18
    }
19
20
    public function test_with_prefix(): void
21
    {
22
        $facade = new WithPrefix\WithPrefixFacade();
23
24
        self::assertSame(
25
            ['Hello, Gacela from WithPrefix.'],
26
            $facade->greet('Gacela'),
27
        );
28
    }
29
30
    public function test_without_prefix(): void
31
    {
32
        $facade = new WithoutPrefix\Facade();
33
34
        self::assertSame(
35
            ['Hello, Gacela from WithoutPrefix.'],
36
            $facade->greet('Gacela'),
37
        );
38
    }
39
}
40