Passed
Push — main ( 1a17f8...8155a4 )
by Chema
10:50 queued 09:35
created

FeatureTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_mapping_interfaces_from_bindings() 0 5 1
A setUp() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature\Framework\BindingsInsideProvider;
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_mapping_interfaces_from_bindings(): void
21
    {
22
        self::assertSame(
23
            'Hello Gacela! Team: Chemaclass & Jesus',
24
            (new Module\Facade())->generateCompanyAndName(),
25
        );
26
    }
27
}
28