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

Oliver Klee typo3-german-02 at oliverklee.de
Thu Jul 8 18:51:38 CEST 2010


Hi,

I fully agree to Niels' post.

In the unit tests, new should be used instead of makeInstance (where it
is possible) because the unit tests should only test the
class-under-test, not the makeInstance function. (That's the same reason
why other classes used in collaboration often should get mocked.)


Oli
-- 
Certified TYPO3 Integrator | TYPO3 Security Team Member


More information about the TYPO3-team-core mailing list