Passed
Pull Request — master (#377)
by Alexander
03:29 queued 56s
created

QueryBuilderTest::tearDown()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Db\Tests\Pgsql\QueryBuilder;
6
7
use Yiisoft\Db\Expression\ExpressionInterface;
8
use Yiisoft\Db\Tests\AbstractQueryBuilderTest;
9
use Yiisoft\Db\Tests\Support\Mock;
10
11
/**
12
 * @group db
13
 * @group pgsql
14
 */
15
final class QueryBuilderTest extends AbstractQueryBuilderTest
16
{
17
    protected array|string $columnQuoteCharacter = '"';
18
    protected Mock $mock;
19
    protected array|string $tableQuoteCharacter = '"';
20
21
    public function setUp(): void
22
    {
23
        parent::setUp();
24
25
        $this->mock = new Mock('pgsql');
26
    }
27
28
    public function tearDown(): void
29
    {
30
        parent::tearDown();
31
32
        unset($this->mock);
33
    }
34
35
    /**
36
     * @dataProvider \Yiisoft\Db\Tests\Pgsql\Provider\QueryBuilderProvider::buildConditions()
37
     */
38
    public function testBuild(
39
        array|ExpressionInterface|string $conditions,
40
        string $expected,
41
        array $expectedParams = []
42
    ): void {
43
        parent::testBuild($conditions, $expected, $expectedParams);
44
    }
45
}
46