[TYPO3-core] RFC #14984: Feature: Add the example unit tests from the T3DD10 unit testing workshop

Niels Pardon typo3_lists at niels-pardon.de
Wed Jul 7 10:00:57 CEST 2010


Hi Christian!

Am 06.07.2010 23:35, schrieb Christian Kuhn:
> Just a (generic) questions:
> * Shouldn't we better use t3lib_div::makeInstance() instead of "new" in
> unit tests? This is eg. used in the fixture for t3lib_arrayBrowserTest,
> and some other core tests already use makeInstance(). I'm unsure about
> that: On the one hand new "might" break if the autoloader gets changed
> somehow, otoh makeInstance() "might" produce problems (with fixtures) if
> a class starts to implement t3lib_Singleton ...



More information about the TYPO3-team-core mailing list