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

IntegrationTestCase::loadEnv()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 2
nc 2
nop 0
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