Passed
Pull Request — master (#234)
by Wilmer
02:38
created

ActiveQueryFindTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 8
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A tearDown() 0 7 1
A setUp() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\ActiveRecord\Tests\Driver\Mysql;
6
7
use Yiisoft\ActiveRecord\Tests\ActiveQueryFindTest as AbstractActiveQueryFindTest;
8
use Yiisoft\Db\Connection\ConnectionInterface;
9
10
/**
11
 * @group mysql
12
 */
13
final class ActiveQueryFindTest extends AbstractActiveQueryFindTest
14
{
15
    protected string $driverName = 'mysql';
16
    protected ConnectionInterface $db;
17
18
    public function setUp(): void
19
    {
20
        parent::setUp();
21
22
        $this->db = $this->mysqlConnection;
23
    }
24
25
    protected function tearDown(): void
26
    {
27
        parent::tearDown();
28
29
        $this->mysqlConnection->close();
30
31
        unset($this->mysqlConnection);
32
    }
33
}
34