diff --git tests/t3lib/t3lib_divTest.php tests/t3lib/t3lib_divTest.php index c5e4fb1..4826d2e 100644 --- tests/t3lib/t3lib_divTest.php +++ tests/t3lib/t3lib_divTest.php @@ -33,11 +33,22 @@ * @subpackage t3lib */ class t3lib_divTest extends tx_phpunit_testcase { + /** * Enable backup of global and system variables + * + * @var boolean */ protected $backupGlobals = TRUE; + /** + * Exclude TYPO3_DB from backup/ restore of $GLOBALS + * because resource types cannot be handled during serializing + * + * @var array + */ + protected $backupGlobalsBlacklist = array('TYPO3_DB'); + /////////////////////////////// // Tests concerning validIP diff --git tests/t3lib/t3lib_spritemanagerTest.php tests/t3lib/t3lib_spritemanagerTest.php index c7e863d..1278734 100644 --- tests/t3lib/t3lib_spritemanagerTest.php +++ tests/t3lib/t3lib_spritemanagerTest.php @@ -31,10 +31,21 @@ * @subpackage t3lib */ class t3lib_SpriteManagerTest extends tx_phpunit_testcase { + /** * Enable backup of global and system variables + * + * @var boolean + */ + protected $backupGlobals = TRUE; + + /** + * Exclude TYPO3_DB from backup/ restore of $GLOBALS + * because resource types cannot be handled during serializing + * + * @var array */ - public $backupGlobals = TRUE; + protected $backupGlobalsBlacklist = array('TYPO3_DB'); ////////////////////////////////////////// diff --git tests/t3lib/t3lib_tcemainTest.php tests/t3lib/t3lib_tcemainTest.php index b564f10..4079727 100644 --- tests/t3lib/t3lib_tcemainTest.php +++ tests/t3lib/t3lib_tcemainTest.php @@ -31,10 +31,21 @@ * @author Oliver Klee */ class t3lib_tcemainTest extends tx_phpunit_testcase { + + /** + * Enable backup of global and system variables + * + * @var boolean + */ + protected $backupGlobals = TRUE; + /** - * @var boolean + * Exclude TYPO3_DB from backup/ restore of $GLOBALS + * because resource types cannot be handled during serializing + * + * @var array */ - protected $backupGlobals = true; + protected $backupGlobalsBlacklist = array('TYPO3_DB'); /** * @var t3lib_TCEmain