Test Failed
Branch main (0ffd95)
by
unknown
01:57
created

IntegrationTestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A loadEnv() 0 9 2
1
<?php
2
3
namespace Tests\Integration;
4
5
use Dotenv\Dotenv;
6
use Tests\TestCase;
7
8
abstract class IntegrationTestCase extends TestCase
9
{
10
    protected function loadEnv(): void
11
    {
12
        if ($_ENV['CI'] == true) {
13
            return;
14
        }
15
16
        $dotenv = Dotenv::createImmutable(__DIR__ . '/../..');
17
        $dotenv->load();
18
    }
19
}
20