Skip to content

Commit ca59db5

Browse files
committed
Bundle quote tests into link tests
1 parent a106296 commit ca59db5

4 files changed

+15
-76
lines changed

test/AbstractLinkTest.php

+15
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,21 @@ public function provideInsertParameters(): iterable
618618
];
619619
}
620620

621+
public function testEscapeByteA(): void
622+
{
623+
$this->assertSame('\x00', $this->executor->escapeByteA("\0"));
624+
}
625+
626+
public function testQuoteString(): void
627+
{
628+
$this->assertSame("'\"''test''\"'", $this->executor->quoteLiteral("\"'test'\""));
629+
}
630+
631+
public function testQuoteName(): void
632+
{
633+
$this->assertSame("\"\"\"'test'\"\"\"", $this->executor->quoteIdentifier("\"'test'\""));
634+
}
635+
621636
/**
622637
* @dataProvider provideInsertParameters
623638
*/

test/AbstractQuoteTest.php

-38
This file was deleted.

test/PgSqlQuoteTest.php

-20
This file was deleted.

test/PqQuoteTest.php

-18
This file was deleted.

0 commit comments

Comments
 (0)