classZtdConfig
final class ZtdConfig
Configuration for ZTD behavior.
Methods§
public function __construct(
UnsupportedSqlBehavior $unsupportedBehavior = UnsupportedSqlBehavior::Exception,
UnknownSchemaBehavior $unknownSchemaBehavior = UnknownSchemaBehavior::Passthrough,
array<string, UnsupportedSqlBehavior> $behaviorRules = [],
)Parameters
$unsupportedBehavior | UnsupportedSqlBehavior | How to handle unsupported SQL. |
$unknownSchemaBehavior | UnknownSchemaBehavior | How to handle unknown schema references. |
$behaviorRules | array<string, UnsupportedSqlBehavior> | Pattern-to-behavior mapping (first match wins). |
Calls 3
- class-const UnsupportedSqlBehavior::Exception() line 35
- class-const UnknownSchemaBehavior::Passthrough() line 36
- new SqlBehaviorRule line 44
public static function default(): selfCreate a default configuration with Exception behavior.
Returns
selfTest cases 112
PostgreSqlDriverDetectionTest::testCustomConfigPassedToSessioncallsSqliteDriverDetectionTest::testCustomConfigPassedToSessioncallsZtdConfigTest::testDefaultCreatesConfigWithExceptionBehaviorcallsMySqlSessionFactoryTest::testCreateAppliesReflectedAnsiQuotesModeToProductionLexingcallsMySqlSessionFactoryTest::testCreateRegistersReflectedViewscallsPgSqlSessionFactoryTest::testCreatedSessionIsEnabledByDefaultcallsPgSqlSessionFactoryTest::testCreateRegistersReflectedPartialUniqueIndexescallsPgSqlSessionFactoryTest::testCreateRegistersReflectedPartitionMetadatacallsPgSqlSessionFactoryTest::testCreateRegistersReflectedViewscallsPgSqlSessionFactoryTest::testCreateReturnsSessioncallsPgSqlSessionFactoryTest::testCreateWithEmptyDatabaseReturnsSessioncallsPgSqlSessionFactoryTest::testCreateWithNullParseResultStillWorkscallsPgSqlSessionFactoryTest::testCreateWithTableRegistersSchemaInSessioncallsPgSqlSessionFactoryTest::testCreateWithTablesReflectsSchemacallsPgSqlSessionFactoryTest::testSessionCanBeEnabledAfterCreationcallsSessionFactoryTest::testCreateAnswersASessionThatHasSimulatedNothingYetcallsSessionFactoryTest::testCreateAnswersASessionThatIsAlreadyOncallsSessionFactoryTest::testCreateReadsEveryTableTheDatabaseAlreadyHascallsMysqliResultProcessorTest::testProcessCreatesAnEmptyWriteResultcallsMysqliResultProcessorTest::testProcessPreservesTheOriginalDatabaseExceptioncallsMysqliResultProcessorTest::testProcessUsesNativeRowsForTheShadowMutationcallsPreparedQueryTest::testPrepareReportsASilentDriverFailurecallsPreparedQueryTest::testRewriteUsesTheCurrentShadowOnEveryExecutioncallsStatementExecutionTest::testBindingsRemainAvailableAcrossExecutionscallsStatementExecutionTest::testBindParameterRetainsReferencesAcrossRepreparationcallsStatementExecutionTest::testExecutePreparedRefreshesShadowReadsAndReplaysBindingscallsStatementExecutionTest::testExecuteSilentFailureDoesNotProduceAShadowResultcallsStatementExecutionTest::testFetchAllReturnsAssociativeRowscallsStatementExecutionTest::testNativeUnrewrittenExecutionDelegatesToTheNativeStatementcallsStatementExecutionTest::testPostProcessAppliesResultSelectRowsToTheShadowcallsStatementExecutionTest::testResultColumnsRemainAvailableAfterRowsAreConsumedcallsStatementExecutionTest::testResultUpdatesShadowAndReturnsItsResultcallsStatementExecutionTest::testRowCountTracksNativeMutationscallsSessionTest::testApplyShadowWritesTheMutationAndAnswersWhatItCameTocallsSessionTest::testApplyTransactionStatementDoesWhatTheStatementSayscallsSessionTest::testBeginTransactionRollBackTransactionBeginTransactionUsesProvidedTransactionManagerForSchemaRollbackcallsSessionTest::testCommitTransactionKeepsWhatTheTransactionDidcallsSessionTest::testCopySupportIsNothingWhereTheDialectHasNoCopycallsSessionTest::testCopyTargetIsNothingWhereTheDialectHasNoCopycallsSessionTest::testCreateEmptyWriteResultAnswersASimulatedWriteWithNothingToFetchcallsSessionTest::testDisableEnableDisableEnableAndDisablecallsSessionTest::testDisableStopsZtdWithoutTouchingTheShadowcallsSessionTest::testEnableTurnsZtdBackOncallsSessionTest::testExecStatementAnswersHowManyRowsAReadStatementCameTocallsSessionTest::testForeignKeyFailureRestoresShadowStatecallsSessionTest::testIsEnabledFollowsWhatWasAskedForcallsSessionTest::testLastInsertIdIsFalseUntilSomethingHasBeenInsertedcallsSessionTest::testMutationFailureIsConvertedToDatabaseExceptioncallsSessionTest::testNeedsPostProcessingIsTrueForTheKindsThatChangeTheShadowcallsSessionTest::testParameterBindingCompilerIsNothingWhereTheDriverBindsThemItselfcallsSessionTest::testParameterBindingCompilerResultColumnTypeResolverParameterBindingCompilerDelegatesCopyTargetsToTheConfiguredPlatformSupportcallsSessionTest::testProcessExecutedStatementReadsAReadStatementStraightBackcallsSessionTest::testResultColumnTypeResolverAnswersTheOneTheSessionWasBuiltWithcallsSessionTest::testRewriteAnswersThePlanTheRewriterGivescallsSessionTest::testRollBackTransactionPutsTheShadowBackToWhereItBegancallsSessionTest::testRunResultSelectAndApplyShadowReadsBackWhatTheStatementWouldHaveWrittencallsSessionTest::testShouldExecuteIsFalseOnlyForAPlanNothingIsToBeRunForcallsSessionTest::testSplitStatementsUsesPlatformRewritercallsSessionTest::testTableDefinitionReturnsRegisteredSchemaOrNullcallsSessionTest::testTransactionsAnswersWhatATransactionStatementIsAppliedTocallsSessionTest::testTransactionStatementIsNothingForAStatementThatIsNotOnecallsStatementSimulatorTest::testReadStatementReturnsFalseWhenExecutorFailscallsStatementSimulatorTest::testReadStatementReturnsRowCountcallsStatementSimulatorTest::testSimulateRefusesAWriteThePlanCarriesNoMutationForcallsStatementSimulatorTest::testUnsupportedSqlThrowscallsStatementSimulatorTest::testWriteStatementUpdatesShadowStorecallsSqliteSessionFactoryTest::testCreateRegistersReflectedViewscallsZtdMysqliStatementTest::testAttr_getReadsTheConfiguredNativeCursorModecallsZtdMysqliStatementTest::testAttr_setUpdatesTheNativeCursorModecallsZtdMysqliStatementTest::testCloseClosesTheDelegatedStatementcallsZtdMysqliStatementTest::testData_seekMovesTheNativeCursorcallsZtdMysqliStatementTest::testExecuteAppliesRowsToTheShadowStorecallsZtdMysqliStatementTest::testExecuteDoesNotRunASkippedPlancallsZtdMysqliStatementTest::testExecuteHonorsReadAndUnplannedParameterscallsZtdMysqliStatementTest::testExecuteReturnsFalseForNativeFailurescallsZtdMysqliStatementTest::testFetchWritesBoundResultVariablescallsZtdMysqliStatementTest::testFree_resultReleasesBufferedRowscallsZtdMysqliStatementTest::testGet_resultConsumesTheCachedNativeResultOncecallsZtdMysqliStatementTest::testGet_resultReturnsFalseForAStatementWithoutRowscallsZtdMysqliStatementTest::testGet_warningsReturnsTheNativeWarningcallsZtdMysqliStatementTest::testMore_resultsReturnsFalseAfterASingleResultcallsZtdMysqliStatementTest::testNext_resultReturnsFalseWithoutAnotherResultcallsZtdMysqliStatementTest::testNum_rowsReturnsTheNativeBufferedCountcallsZtdMysqliStatementTest::testPrepareReplacesTheDelegatedStatementcallsZtdMysqliStatementTest::testResetClearsTheSimulatedAffectedRowCountcallsZtdMysqliStatementTest::testResult_metadataReturnsNativeColumnInformationcallsZtdMysqliStatementTest::testSend_long_dataConcatenatesBinaryChunkscallsZtdMysqliStatementTest::testStore_resultBuffersTheNativeRowscallsZtdMysqliStatementTest::testZtdAffectedRowsReturnsTheNativeWriteCountcallsZtdMysqliTest::testFromMysqliPassesTheConnectionAndConfigurationToItsFactorycallsZtdPdoStatementTest::testBindColumnFillsTheVariableTheColumnIsReadIntocallsZtdPdoStatementTest::testBindValueDelegatesToInnercallsZtdPdoStatementTest::testCloseCursorDelegatesToInnercallsZtdPdoStatementTest::testColumnCountDelegatesToInnercallsZtdPdoStatementTest::testDebugDumpParamsWritesTheDumpRatherThanAnsweringItcallsZtdPdoStatementTest::testErrorCodeAnswersNothingWhereTheDriverSaysNothingcallsZtdPdoStatementTest::testErrorCodeAnswersWhatTheDriverSaysWentWrongLastcallsZtdPdoStatementTest::testErrorInfoAnswersWhatTheDriverSaysAboutTheLastFailurecallsZtdPdoStatementTest::testExecuteDelegatesWhenNoPlancallsZtdPdoStatementTest::testExecuteDelegatesWhenNoPostProcessingNeededcallsZtdPdoStatementTest::testExecuteReturnsFalseWhenShouldExecuteIsFalsecallsZtdPdoStatementTest::testExecuteWithoutPostProcessingRunsNativeStatementOncecallsZtdPdoStatementTest::testExecuteWrapsSimulationFailureAsAdapterExceptioncallsZtdPdoStatementTest::testFetchObjectDelegatesWithoutABufferedResultcallsZtdPdoStatementTest::testGetAttributeReadsTheAttributeOffTheStatementItWrapscallsZtdPdoStatementTest::testGetColumnMetaAnswersWhatTheDriverSaysAboutAColumncallsZtdPdoStatementTest::testGetIteratorWalksTheDriversOwnCursorWhereNothingWasBufferedcallsZtdPdoStatementTest::testNextRowsetMovesTheStatementOnToTheDriversNextResultcallsZtdPdoStatementTest::testPassthroughFetchAllForwardsColumnAndCallbackArgumentscallsZtdPdoStatementTest::testPassthroughFetchAllPreservesKeyPairKeyscallsZtdPdoStatementTest::testRowCountDelegatesToInnerWhenNoResultcallsZtdPdoStatementTest::testSetAttributeSetsTheAttributeOnTheStatementItWrapscalls
Called from 2
Calls 1
- new
selfline 53
public function unsupportedBehavior(): UnsupportedSqlBehaviorGet the default unsupported SQL behavior mode.
Returns
Test cases 1
public function unknownSchemaBehavior(): UnknownSchemaBehaviorGet the unknown schema behavior mode.
Returns
Test cases 1
Called from 1
public function behaviorRules(): list<SqlBehaviorRule>public function getBehaviorFor(string $sql): ?UnsupportedSqlBehaviorGet the behavior for a specific SQL statement.
Checks behavior rules in order; first matching rule determines behavior. Returns null if no rule matches (use default unsupportedBehavior).
Parameters
$sql | string |
Returns
Test cases 7
ZtdConfigTest::testEmptyBehaviorRulescallsZtdConfigTest::testFirstMatchWinscallsZtdConfigTest::testGetBehaviorForReturnsMatchingRuleBehaviorcallsZtdConfigTest::testGetBehaviorForReturnsNullWhenNoMatchcallsZtdConfigTest::testMixedPrefixAndRegexRulescallsZtdConfigTest::testPrefixMatchingBehaviorcallsZtdConfigTest::testRegexMatchingBehaviorcalls
public function resolveUnsupportedBehavior(string $sql): UnsupportedSqlBehaviorResolve the effective behavior for a SQL statement.
Uses rule-specific behavior if a rule matches, otherwise default behavior.
Parameters
$sql | string |
Returns
Test cases 3
Called from 1
Calls 1
- method-call ZtdConfig::getBehaviorFor() line 106
Private surface 3§
Implementation details, listed for orientation only.
private UnsupportedSqlBehavior $unsupportedBehaviorprivate UnknownSchemaBehavior $unknownSchemaBehaviorprivate list<SqlBehaviorRule> $behaviorRulesTest cases 160§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 13
ZtdConfigTest::testBehaviorRulesReturnsConfiguredRulescallsZtdConfigTest::testDefaultCreatesConfigWithExceptionBehaviorcallsZtdConfigTest::testEmptyBehaviorRulescallsZtdConfigTest::testFirstMatchWinscallsZtdConfigTest::testGetBehaviorForReturnsMatchingRuleBehaviorcallsZtdConfigTest::testGetBehaviorForReturnsNullWhenNoMatchcallsZtdConfigTest::testMixedPrefixAndRegexRulescallsZtdConfigTest::testPrefixMatchingBehaviorcallsZtdConfigTest::testRegexMatchingBehaviorcallsZtdConfigTest::testResolveUnsupportedBehaviorUsesDefaultWhenNoMatchcallsZtdConfigTest::testResolveUnsupportedBehaviorUsesMatchingRulecallsZtdConfigTest::testUnknownSchemaBehaviorReturnsConfiguredValuecallsZtdConfigTest::testUnsupportedBehaviorReturnsConfiguredValuecalls
Other tests reaching this symbol 147
CorrectnessHarness::setupcallsMysqliCorrectnessHarness::setupcallsPgCorrectnessHarness::setupcallsSqliteCorrectnessHarness::setupcallsExecutionCheck::verifycallsFakeSessionFactorycallsCopyTest::testStandardPdoMethodsHonorTheSessionsIgnorePolicyForCopycallsPostgreSqlDriverDetectionTest::testCustomConfigPassedToSessioncallsSqliteDriverDetectionTest::testCustomConfigPassedToSessioncallsSqliteErrorHandlingTest::testLateTableMutationRespectsExceptionBehaviorcallsSqliteErrorHandlingTest::testUnsupportedSqlWithExceptionBehaviorcallsSqliteErrorHandlingTest::testUnsupportedSqlWithIgnoreBehaviorcallsSqliteErrorHandlingTest::testUnsupportedSqlWithNoticeBehaviorcallsMySqlSessionFactoryTest::testCreateAppliesReflectedAnsiQuotesModeToProductionLexingcallsMySqlSessionFactoryTest::testCreateRegistersReflectedViewscallsMySqlSessionFactoryTest::testCreateReturnsSessioncallsPgSqlSessionFactoryTest::testCreatedSessionIsEnabledByDefaultcallsPgSqlSessionFactoryTest::testCreateRegistersReflectedPartialUniqueIndexescallsPgSqlSessionFactoryTest::testCreateRegistersReflectedPartitionMetadatacallsPgSqlSessionFactoryTest::testCreateRegistersReflectedViewscallsPgSqlSessionFactoryTest::testCreateReturnsSessioncallsPgSqlSessionFactoryTest::testCreateWithEmptyDatabaseReturnsSessioncallsPgSqlSessionFactoryTest::testCreateWithNullParseResultStillWorkscallsPgSqlSessionFactoryTest::testCreateWithTableRegistersSchemaInSessioncallsPgSqlSessionFactoryTest::testCreateWithTablesReflectsSchemacallsPgSqlSessionFactoryTest::testSessionCanBeEnabledAfterCreationcallsSessionFactoryTest::testCreateAnswersASessionThatHasSimulatedNothingYetcallsSessionFactoryTest::testCreateAnswersASessionThatIsAlreadyOncallsSessionFactoryTest::testCreateReadsEveryTableTheDatabaseAlreadyHascallsRewriteRefusalTest::testForUnknownSchemaLetsTheStatementThroughWhereTheCallerAsksForThatcallsRewriteRefusalTest::testForUnknownSchemaRaisesWhereTheCallerAskedToBeToldcallsRewriteRefusalTest::testForUnknownSchemaReadsNothingBackWhereTheCallerAsksForThatcallsRewriteRefusalTest::testForUnknownSchemaSaysSomethingWhereTheCallerAskedToBeNoticedcallsRewriteRefusalTest::testForUnsupportedAnswersAPlanThatDoesNothingWhereTheCallerAllowsThatcallsRewriteRefusalTest::testForUnsupportedRaisesWhereTheCallerAskedToBeToldcallsRewriteRefusalTest::testForUnsupportedSaysSomethingWhereTheCallerAskedToBeNoticedcallsMysqliResultProcessorTest::testProcessCreatesAnEmptyWriteResultcallsMysqliResultProcessorTest::testProcessPreservesTheOriginalDatabaseExceptioncallsMysqliResultProcessorTest::testProcessUsesNativeRowsForTheShadowMutationcallsPreparedQueryTest::testPrepareReportsASilentDriverFailurecallsPreparedQueryTest::testRewriteUsesTheCurrentShadowOnEveryExecutioncallsStatementExecutionTest::testBindingsRemainAvailableAcrossExecutionscallsStatementExecutionTest::testBindParameterRetainsReferencesAcrossRepreparationcallsStatementExecutionTest::testExecutePreparedRefreshesShadowReadsAndReplaysBindingscallsStatementExecutionTest::testExecuteSilentFailureDoesNotProduceAShadowResultcallsStatementExecutionTest::testFetchAllReturnsAssociativeRowscallsStatementExecutionTest::testNativeUnrewrittenExecutionDelegatesToTheNativeStatementcallsStatementExecutionTest::testPostProcessAppliesResultSelectRowsToTheShadowcallsStatementExecutionTest::testResultColumnsRemainAvailableAfterRowsAreConsumedcallsStatementExecutionTest::testResultUpdatesShadowAndReturnsItsResultcallsStatementExecutionTest::testRowCountTracksNativeMutationscallsSessionTest::testApplyShadowWritesTheMutationAndAnswersWhatItCameTocallsSessionTest::testApplyTransactionStatementDoesWhatTheStatementSayscallsSessionTest::testBeginTransactionRollBackTransactionBeginTransactionUsesProvidedTransactionManagerForSchemaRollbackcallsSessionTest::testCommitTransactionKeepsWhatTheTransactionDidcallsSessionTest::testCopySupportIsNothingWhereTheDialectHasNoCopycallsSessionTest::testCopyTargetIsNothingWhereTheDialectHasNoCopycallsSessionTest::testCreateEmptyWriteResultAnswersASimulatedWriteWithNothingToFetchcallsSessionTest::testDisableEnableDisableEnableAndDisablecallsSessionTest::testDisableStopsZtdWithoutTouchingTheShadowcallsSessionTest::testEnableTurnsZtdBackOncallsSessionTest::testExecStatementAnswersHowManyRowsAReadStatementCameTocallsSessionTest::testForeignKeyFailureRestoresShadowStatecallsSessionTest::testIsEnabledFollowsWhatWasAskedForcallsSessionTest::testLastInsertIdIsFalseUntilSomethingHasBeenInsertedcallsSessionTest::testMutationFailureIsConvertedToDatabaseExceptioncallsSessionTest::testNeedsPostProcessingIsTrueForTheKindsThatChangeTheShadowcallsSessionTest::testParameterBindingCompilerIsNothingWhereTheDriverBindsThemItselfcallsSessionTest::testParameterBindingCompilerResultColumnTypeResolverParameterBindingCompilerDelegatesCopyTargetsToTheConfiguredPlatformSupportcallsSessionTest::testProcessExecutedStatementReadsAReadStatementStraightBackcallsSessionTest::testResultColumnTypeResolverAnswersTheOneTheSessionWasBuiltWithcallsSessionTest::testRewriteAnswersThePlanTheRewriterGivescallsSessionTest::testRollBackTransactionPutsTheShadowBackToWhereItBegancallsSessionTest::testRunResultSelectAndApplyShadowReadsBackWhatTheStatementWouldHaveWrittencallsSessionTest::testShouldExecuteIsFalseOnlyForAPlanNothingIsToBeRunForcallsSessionTest::testSplitStatementsUsesPlatformRewritercallsSessionTest::testTableDefinitionReturnsRegisteredSchemaOrNullcallsSessionTest::testTransactionsAnswersWhatATransactionStatementIsAppliedTocallsSessionTest::testTransactionStatementIsNothingForAStatementThatIsNotOnecallsStatementSimulatorTest::testReadStatementReturnsFalseWhenExecutorFailscallsStatementSimulatorTest::testReadStatementReturnsRowCountcallsStatementSimulatorTest::testSimulateRefusesAWriteThePlanCarriesNoMutationForcallsStatementSimulatorTest::testUnsupportedSqlThrowscallsStatementSimulatorTest::testWriteStatementUpdatesShadowStorecallsSqliteSessionFactoryTest::testCreateRegistersReflectedViewscallsSqliteSessionFactoryTest::testCreateReturnsSessioncallsSqliteSessionFactoryTest::testCreateWithExistingTablesRegistersDefinitionscallsSqliteSessionFactoryTest::testCreateWithUnparseableSchemaSkipsTablecallsZtdMysqliStatementTest::testAttr_getReadsTheConfiguredNativeCursorModecallsZtdMysqliStatementTest::testAttr_setUpdatesTheNativeCursorModecallsZtdMysqliStatementTest::testCloseClosesTheDelegatedStatementcallsZtdMysqliStatementTest::testData_seekMovesTheNativeCursorcallsZtdMysqliStatementTest::testExecuteAppliesRowsToTheShadowStorecallsZtdMysqliStatementTest::testExecuteDoesNotRunASkippedPlancallsZtdMysqliStatementTest::testExecuteHonorsReadAndUnplannedParameterscallsZtdMysqliStatementTest::testExecuteReturnsFalseForNativeFailurescallsZtdMysqliStatementTest::testFetchWritesBoundResultVariablescallsZtdMysqliStatementTest::testFree_resultReleasesBufferedRowscallsZtdMysqliStatementTest::testGet_resultConsumesTheCachedNativeResultOncecallsZtdMysqliStatementTest::testGet_resultReturnsFalseForAStatementWithoutRowscallsZtdMysqliStatementTest::testGet_warningsReturnsTheNativeWarningcallsZtdMysqliStatementTest::testMore_resultsReturnsFalseAfterASingleResultcallsZtdMysqliStatementTest::testNext_resultReturnsFalseWithoutAnotherResultcallsZtdMysqliStatementTest::testNum_rowsReturnsTheNativeBufferedCountcallsZtdMysqliStatementTest::testPrepareReplacesTheDelegatedStatementcallsZtdMysqliStatementTest::testResetClearsTheSimulatedAffectedRowCountcallsZtdMysqliStatementTest::testResult_metadataReturnsNativeColumnInformationcallsZtdMysqliStatementTest::testSend_long_dataConcatenatesBinaryChunkscallsZtdMysqliStatementTest::testStore_resultBuffersTheNativeRowscallsZtdMysqliStatementTest::testZtdAffectedRowsReturnsTheNativeWriteCountcallsZtdMysqliTest::testAutocommitCommitsOrRollsBackTheShadowScopecallsZtdMysqliTest::testBegin_transactionCreatesAShadowRollbackScopecallsZtdMysqliTest::testCommitRetainsTheShadowRowscallsZtdMysqliTest::testConnectUsesTheSuppliedNativeCredentialscallsZtdMysqliTest::testFromMysqliPassesTheConnectionAndConfigurationToItsFactorycallsZtdMysqliTest::testPrepareAndQueriesPreserveNativeFalseResultscallsZtdMysqliTest::testPrepareWrapsRewriteFailurescallsZtdMysqliTest::testQueryReturnsFalseWhenThePreparedExecutionFailscallsZtdMysqliTest::testQueryReturnsTrueWithoutAResultSetcallsZtdMysqliTest::testQueryUsesTheProvidedFactoryAndConfigurationcallsZtdMysqliTest::testReal_connectConnectsAnInitializedNativeHandlecallsZtdMysqliTest::testReal_queryAppliesTransactionStatementscallsZtdMysqliTest::testRelease_savepointRemovesTheNativeAndShadowSavepointscallsZtdMysqliTest::testRollbackRestoresTheShadowSnapshotcallsZtdMysqliTest::testSavepointPreservesItsShadowSnapshotcallsZtdPdoStatementTest::testBindColumnFillsTheVariableTheColumnIsReadIntocallsZtdPdoStatementTest::testBindValueDelegatesToInnercallsZtdPdoStatementTest::testCloseCursorDelegatesToInnercallsZtdPdoStatementTest::testColumnCountDelegatesToInnercallsZtdPdoStatementTest::testDebugDumpParamsWritesTheDumpRatherThanAnsweringItcallsZtdPdoStatementTest::testErrorCodeAnswersNothingWhereTheDriverSaysNothingcallsZtdPdoStatementTest::testErrorCodeAnswersWhatTheDriverSaysWentWrongLastcallsZtdPdoStatementTest::testErrorInfoAnswersWhatTheDriverSaysAboutTheLastFailurecallsZtdPdoStatementTest::testExecuteDelegatesWhenNoPlancallsZtdPdoStatementTest::testExecuteDelegatesWhenNoPostProcessingNeededcallsZtdPdoStatementTest::testExecuteReturnsFalseWhenShouldExecuteIsFalsecallsZtdPdoStatementTest::testExecuteWithoutPostProcessingRunsNativeStatementOncecallsZtdPdoStatementTest::testExecuteWrapsSimulationFailureAsAdapterExceptioncallsZtdPdoStatementTest::testFetchObjectDelegatesWithoutABufferedResultcallsZtdPdoStatementTest::testGetAttributeReadsTheAttributeOffTheStatementItWrapscallsZtdPdoStatementTest::testGetColumnMetaAnswersWhatTheDriverSaysAboutAColumncallsZtdPdoStatementTest::testGetIteratorWalksTheDriversOwnCursorWhereNothingWasBufferedcallsZtdPdoStatementTest::testNextRowsetMovesTheStatementOnToTheDriversNextResultcallsZtdPdoStatementTest::testPassthroughFetchAllForwardsColumnAndCallbackArgumentscallsZtdPdoStatementTest::testPassthroughFetchAllPreservesKeyPairKeyscallsZtdPdoStatementTest::testRowCountDelegatesToInnerWhenNoResultcallsZtdPdoStatementTest::testSetAttributeSetsTheAttributeOnTheStatementItWrapscalls
Relations§
Static calls 2
Method calls 2
Type declarations 12
- type ZtdQuery\Platform\SessionFactory packages/ztd-query-core/src/Platform/SessionFactory.php:35
- type ZtdQuery\RewriteRefusal packages/ztd-query-core/src/RewriteRefusal.php:31
- type ZtdQuery\Session packages/ztd-query-core/src/Session.php:87
- type ZtdQuery\Platform\MySql\MySqlSessionFactory packages/ztd-query-mysql/src/MySqlSessionFactory.php:40
- type ZtdQuery\Adapter\Mysqli\Session\ConnectionExecution packages/ztd-query-mysqli-adapter/src/Session/ConnectionExecution.php:35
- type ZtdQuery\Adapter\Mysqli\ZtdMysqli packages/ztd-query-mysqli-adapter/src/ZtdMysqli.php:68
- type ZtdQuery\Adapter\Mysqli\ZtdMysqli packages/ztd-query-mysqli-adapter/src/ZtdMysqli.php:87
- type ZtdQuery\Adapter\Pdo\Session\ConnectionExecution packages/ztd-query-pdo-adapter/src/Session/ConnectionExecution.php:30
- type ZtdQuery\Adapter\Pdo\ZtdPdo packages/ztd-query-pdo-adapter/src/ZtdPdo.php:60
- type ZtdQuery\Adapter\Pdo\ZtdPdo packages/ztd-query-pdo-adapter/src/ZtdPdo.php:89
- type ZtdQuery\Platform\Postgres\PgSqlSessionFactory packages/ztd-query-postgres/src/PgSqlSessionFactory.php:54
- type ZtdQuery\Platform\Sqlite\SqliteSessionFactory packages/ztd-query-sqlite/src/SqliteSessionFactory.php:42