[TYPO3-core] RFC: #15539: Unit Tests: $GLOBALS['TYPO3_DB']->link get lost during backup/ restore of global variables

Xavier Perseguers typo3 at perseguers.ch
Tue Aug 24 08:37:54 CEST 2010


Hi,

> Problem:
> When using phpunit's feature of backing up and restoring global
> variables, the sql resource link in $GLOBALS['TYPO3_DB']->link is lost,
> because PHP serializing does not support resource-types.[1]
>
> If this feature is used in one testcase, the following testcases that
> rely on a database link will fail or throw errors, if all tests are
> executed at once.
>
> Solution:
> Add TYPO3_DB to the blacklist for the globals backup in the core tests
> where this phpunit feature is used.

+1 by reading

Xavier


More information about the TYPO3-team-core mailing list