Skip to content

Commit

Permalink
Bundle quote tests into link tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 9, 2023
1 parent a106296 commit ca59db5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 76 deletions.
15 changes: 15 additions & 0 deletions test/AbstractLinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,21 @@ public function provideInsertParameters(): iterable
];
}

public function testEscapeByteA(): void
{
$this->assertSame('\x00', $this->executor->escapeByteA("\0"));
}

public function testQuoteString(): void
{
$this->assertSame("'\"''test''\"'", $this->executor->quoteLiteral("\"'test'\""));
}

public function testQuoteName(): void
{
$this->assertSame("\"\"\"'test'\"\"\"", $this->executor->quoteIdentifier("\"'test'\""));
}

/**
* @dataProvider provideInsertParameters
*/
Expand Down
38 changes: 0 additions & 38 deletions test/AbstractQuoteTest.php

This file was deleted.

20 changes: 0 additions & 20 deletions test/PgSqlQuoteTest.php

This file was deleted.

18 changes: 0 additions & 18 deletions test/PqQuoteTest.php

This file was deleted.

0 comments on commit ca59db5

Please sign in to comment.