Passed
Pull Request — master (#14)
by Timon
02:48
created

BaseUnitTestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 14
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A tearDown() 0 4 1
A setUp() 0 6 1
1
<?php
2
declare(strict_types=1);
3
4
namespace TBolier\RethinkQL\UnitTest;
5
6
use Mockery;
7
use PHPUnit\Framework\TestCase;
8
9
class BaseUnitTestCase extends TestCase
10
{
11
    protected function tearDown()
12
    {
13
        Mockery::close();
14
    }
15
16
    protected function setUp()
17
    {
18
        Mockery::getConfiguration()->allowMockingNonExistentMethods(false);
19
20
        parent::setUp();
21
    }
22
}
23