Passed
Branch add-rector-actions (5668b1)
by Wilmer
03:26
created

BatchQueryResultTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\ActiveRecord\Tests\Mssql;
6
7
use Yiisoft\ActiveRecord\Tests\BatchQueryResultTest as AbstractBatchQueryResultTest;
8
use Yiisoft\Db\Connection\ConnectionInterface;
9
10
/**
11
 * @group mssql
12
 */
13
final class BatchQueryResultTest extends AbstractBatchQueryResultTest
14
{
15
    protected string $driverName = 'mssql';
16
    protected ConnectionInterface $db;
17
18
    public function setUp(): void
19
    {
20
        parent::setUp();
21
22
        $this->db = $this->mssqlConnection;
23
    }
24
25
    protected function tearDown(): void
26
    {
27
        parent::tearDown();
28
29
        $this->mssqlConnection->close();
30
31
        unset($this->mssqlConnection);
32
    }
33
}
34