Issue Bug Closed

#25090Cleanup: Replace deprecated assertType in unit tests

Alexander Stehlik 02/18/11, 18:04 updated 10/02/18, 12:21

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)

Reviews 2