Project

General

Profile

Actions

Bug #25090

closed

Cleanup: Replace deprecated assertType in unit tests

Added by Alexander Stehlik about 13 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-02-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

"assertType() will be removed in PHPUnit 3.6 and should no longer be used. assertInternalType() should be used for asserting internal types such as "integer" or "string" whereas assertInstanceOf() should be used for asserting that an object is an instance of a specified class or interface."

I'll attach a patch that replaces all assertType calls with the new assertInstanceOf or assertInternalType methods.

(issue imported from #M17657)


Files

typo3-17657-unit_test_assertType.diff (1.9 KB) typo3-17657-unit_test_assertType.diff Administrator Admin, 2011-02-18 18:05
Actions

Also available in: Atom PDF