Passed
Pull Request — master (#380)
by Wilmer
16:46 queued 13:55
created

AbstractQuoterTest::testsEnsureNameQuoted()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Db\Tests;
6
7
use PHPUnit\Framework\TestCase;
8
use Yiisoft\Db\Tests\Support\TestTrait;
9
10
abstract class AbstractQuoterTest extends TestCase
11
{
12
    use TestTrait;
13
14
    /**
15
     * @dataProvider \Yiisoft\Db\Tests\Provider\QuoterProvider::ensureColumnName()
16
     */
17
    public function testsEnsureColumnName(string $columnName, string $expected): void
18
    {
19
        $this->assertSame($expected, $this->getQuoter()->ensureColumnName($columnName));
20
    }
21
22
    /**
23
     * @dataProvider \Yiisoft\Db\Tests\Provider\QuoterProvider::ensureNameQuoted()
24
     */
25
    public function testsEnsureNameQuoted(string $name, string $expected): void
26
    {
27
        $this->assertSame($expected, $this->getQuoter()->ensureNameQuoted($name));
28
    }
29
}
30