FeatureTest::test_missing_factory_and_config()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature\Framework\UsingAbstractGacelaClassesByDefault;
6
7
use Gacela\Framework\Gacela;
8
use PHPUnit\Framework\TestCase;
9
10
final class FeatureTest extends TestCase
11
{
12
    private const FACADE_ROOT_DIR = 'tests' . DIRECTORY_SEPARATOR . 'Feature' . DIRECTORY_SEPARATOR
13
        . 'Framework' . DIRECTORY_SEPARATOR . 'UsingAbstractGacelaClassesByDefault';
14
15
    protected function setUp(): void
16
    {
17
        Gacela::bootstrap(__DIR__);
18
    }
19
20
    public function test_missing_factory_and_config(): void
21
    {
22
        $facade = new Module\Facade();
23
24
        self::assertStringContainsString(self::FACADE_ROOT_DIR, $facade->getAppRootDir());
25
    }
26
}
27