IntegrationTestCase   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A recreateDbScheme() 0 3 1
A getPdoConnection() 0 3 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