[TYPO3-core] RFC #10220: Feature: Get some unit tests for the core
Stefano Kowalke
blueduck at gmx.net
Fri Jan 23 13:37:16 CET 2009
> Personally I had to deactivate the option "Always load (simple) FE
> environment" of the phpunit extension because it gave a fatal error
> otherwise.
I run in the same issue with latest trunk (4.2.4 works well).
Here the error output:
Fatal error: Call to a member function push() on a non-object in
T3Root\typo3\sysext\cms\tslib\class.tslib_fe.php on line 599
I step a little bit deeper an found the reason for this issue.
The $GLOBALS['TT'] Array was not initialized in
T3Root\typo3\sysext\cms\tslib\class.tslib_fe.php
When i add these two lines
require_once(PATH_t3lib.'class.t3lib_timetrack.php');
$GLOBALS['TT'] = new t3lib_timeTrack;
to the file (outside the class), it will be work.
Is this there at the right position or its better to initialize this
array at a more central place?
Cheers
Stefano
More information about the TYPO3-team-core
mailing list