scriptlog:tests:dbstatementcacheandprefixtest
This is an old revision of the document!
Table of Contents
tests/unit/DbStatementCacheAndPrefixTest.php
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
Imports
^ Alias ^ Fully-qualified name ^ | ''TestCase'' | ''PHPUnit\Framework\TestCase'' | | ''Db'' | ''Scriptlog\Core\Db'' |
Types declared here
scriptlog/tests/dbstatementcacheandprefixtest.1790413765.txt.gz · Last modified: by admin
