Source: tests/unit/DbStatementCacheAndPrefixTest.php · 194 lines, ~971 statements · namespace: (global) · `declare(strict_types=1)`: no
DbStatementCacheAndPrefixTest
Verifies the two P5/P6 optimizations in Scriptlog\Core\Db: \ - P6: applyTablePrefix() single-pass alternation produces byte-identical
output to the previous per-table preg_replace loop (parity test)
\ - P5: prepareCached() reuses a prepared statement for identical SQL text
and prepares fresh statements for distinct SQL
| Alias | Fully-qualified name |
|---|---|
TestCase | PHPUnit\Framework\TestCase |
Db | Scriptlog\Core\Db |