HeaderTestCase::setUp()   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
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature;
6
7
use PHPUnit\Framework\TestCase;
8
9
include_once __DIR__ . '/header.php';
10
11
abstract class HeaderTestCase extends TestCase
12
{
13
    /**
14
     * @runInSeparateProcess
15
     */
16
    protected function setUp(): void
17
    {
18
        global $testHeaders;
19
20
        $testHeaders = null;
21
    }
22
23
    protected function headers(): array
24
    {
25
        global $testHeaders;
26
27
        return $testHeaders ?? [];
28
    }
29
}
30