[TYPO3-core] RFC #16267 Feature: Add functions to provide mocks for makeInstance
Christian Kuhn
lolli at schwarzbu.ch
Fri Nov 26 20:50:54 CET 2010
Hey Oliver,
On 11/26/2010 09:47 AM, Oliver Klee wrote:
> now that #16552 has been checked in (thanks, guys!), I've created an
> updated patch.
+1 on reading and testing, if you assure that purgeInstances() does not
harm the phpunit environment if called within tearDown(). On the first
call several registered singleton instances like template and cache
classes will be thrown away. Is this ok? Are you sure about that?
Attached version with minor changes:
- Some juggling in method headers and annotations
- Add a big warning to purgeInstance() and friends that these methods
are not meant to be called in production
- Swap 'static public' to 'public static'
Regards
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 16267_03.diff
Type: text/x-patch
Size: 13289 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101126/1fcfc44f/attachment-0001.bin>
More information about the TYPO3-team-core
mailing list