Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:tests:dbstatementcacheandprefixtest

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


Generated by 'tools/gendoc'.

scriptlog/tests/dbstatementcacheandprefixtest.txt · Last modified: by admin