Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class QuotingTest extends DbalFunctionalTestCase |
||
8 | { |
||
9 | /** |
||
10 | * @dataProvider stringLiteralProvider |
||
11 | */ |
||
12 | public function testQuoteStringLiteral(string $string) : void |
||
13 | { |
||
14 | $platform = $this->_conn->getDatabasePlatform(); |
||
15 | $query = $platform->getDummySelectSQL( |
||
16 | $platform->quoteStringLiteral($string) |
||
17 | ); |
||
18 | |||
19 | self::assertSame($string, $this->_conn->fetchColumn($query)); |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @return mixed[][] |
||
24 | */ |
||
25 | public static function stringLiteralProvider() : iterable |
||
30 | ]; |
||
31 | } |
||
33 |