Passed
Branch master (562d32)
by Gabriel
01:25
created

AbstractTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A tearDown() 0 6 1
1
<?php
2
3
namespace Nip\Container\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
     * This method is called after each test.
17
     */
18
    protected function tearDown(): void
19
    {
20
        parent::tearDown();
21
22
        \Mockery::close();
23
        Container::setInstance(new Container());
24
    }
25
}
26