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