[TYPO3-core] RFC #17657: Code cleanup: Replace deprecated assertType in unit tests

Alexander Stehlik alexander.stehlik at googlemail.com
Sat Feb 19 17:56:03 CET 2011


This is an SVN patch request.

Type: Code cleanup

Bugtracker references:
http://bugs.typo3.org/view.php?id=17657

Branches:
trunk

Problem:
assertType() will be removed in PHPUnit 3.6 and should no longer be used

Solution:
Use assertInternalType() for internal types and assertInstanceOf() for 
objects.

Notes:
Attached patch replaces all assertType() calls with assertInternalType() 
or assertInstanceOf().

There are also occurrences of assertType() in the system extensions 
"extbase" and "scheduler". Can these be included in the patch or do I 
need to report them in forge?

Kind regards,
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typo3-17657-unit_test_assertType.diff
Type: text/x-patch
Size: 1945 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110219/da217398/attachment.bin>


More information about the TYPO3-team-core mailing list