Completed
Push — master ( cc8038...edef00 )
by Bartko
01:27
created

IntegrationTestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 15
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPdoConnection() 0 4 1
A recreateDbScheme() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace StefanoTreeTest;
6
7
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
8
use PHPUnit\Framework\TestCase;
9
use StefanoTreeTest\DbTester\DbTestCaseTrait;
10
11
abstract class IntegrationTestCase extends TestCase
12
{
13
    use DbTestCaseTrait;
14
    use MockeryPHPUnitIntegration;
15
16
    protected function getPdoConnection()
17
    {
18
        return TestUtil::getPDOConnection();
19
    }
20
21
    public function recreateDbScheme()
22
    {
23
        TestUtil::createDbScheme();
24
    }
25
}
26