HeaderTestCase   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 17
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 5 1
A headers() 0 5 1
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