Test Failed
Push — gacela-get-root-dir ( 210465 )
by Chema
03:31
created

GacelaTest::test_get_cache_dir()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 7
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Integration\Framework;
6
7
use Gacela\Framework\Bootstrap\GacelaConfig;
8
use Gacela\Framework\Gacela;
9
use PHPUnit\Framework\TestCase;
10
11
final class GacelaTest extends TestCase
12
{
13
    public function test_null_get_cache_dir(): void
14
    {
15
        self::assertNull(Gacela::get('rootDir'));
16
    }
17
18
    /**
19
     * @depends test_null_get_cache_dir
20
     */
21
    public function test_get_cache_dir(): void
22
    {
23
        Gacela::bootstrap(__DIR__, function (GacelaConfig $config) {
24
            $config->resetInMemoryCache();
25
        });
26
27
        self::assertEquals(__DIR__, Gacela::get('rootDir'));
28
    }
29
}
30