Passed
Push — master ( 007151...b53df1 )
by Gabriel
14:03
created

AbstractTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A tearDown() 0 4 1
1
<?php
2
3
namespace Nip\Http\Tests;
4
5
use Nip\Container\Container;
6
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * Class AbstractTest
10
 */
11
abstract class AbstractTest extends TestCase
12
{
13
    protected $object;
14
15
    /**
16
     * @var \UnitTester
0 ignored issues
show
Bug introduced by
The type UnitTester was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
17
     */
18
    protected $tester;
19
20
    protected function tearDown(): void
21
    {
22
        parent::tearDown(); // TODO: Change the autogenerated stub
23
        Container::setInstance(null);
24
    }
25
}
26