TestCase   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 12
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUpBeforeClass() 0 3 1
A tearDownAfterClass() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the doyo/mezzio-testing project.
5
 *
6
 * (c) Anthonius Munthi <https://itstoni.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Doyo\Mezzio\Testing;
15
16
use Doyo\Mezzio\Testing\Modules\WithContainer;
17
use PHPUnit\Framework\TestCase as BaseTestCase;
18
19
/**
20
 * Class TestCase.
21
 *
22
 * @codeCoverageIgnore
23
 */
24
abstract class TestCase extends BaseTestCase
25
{
26
    use WithContainer;
27
28
    public static function setUpBeforeClass(): void
29
    {
30
        static::initialize();
31
    }
32
33
    public static function tearDownAfterClass(): void
34
    {
35
        static::$container = null;
36
    }
37
}
38