AbstractTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 6 1
A tearDown() 0 5 1
1
<?php
2
3
namespace Nip\Router\Tests;
4
5
use PHPUnit\Framework\TestCase;
6
use Symfony\Component\Filesystem\Filesystem;
7
8
/**
9
 * Class AbstractTest
10
 */
11
abstract class AbstractTest extends TestCase
12
{
13
    protected $object;
14
15
    protected function setUp(): void
16
    {
17
        parent::setUp();
18
19
        $filesystem = new Filesystem();
20
        $filesystem->remove(TEST_FIXTURE_PATH . '/bootstrap/routes');
21
    }
22
23
    protected function tearDown(): void
24
    {
25
        parent::tearDown();
26
27
        \Mockery::close();
0 ignored issues
show
Bug introduced by
The type Mockery 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...
28
    }
29
}
30