Phpunit: Deprecate assertInternalType() and assertNotInternalType()

Created on 24 Oct 2018  ·  3Comments  ·  Source: sebastianbergmann/phpunit

Most helpful comment

For those coming from the deprecation in the code, here is a quick summary of the methods to use instead (to save you a click):

  • assertIsArray()
  • assertIsBool()
  • assertIsFloat()
  • assertIsInt()
  • assertIsNumeric()
  • assertIsObject()
  • assertIsResource()
  • assertIsString()
  • assertIsScalar()
  • assertIsCallable()
  • assertIsIterable()
  • assertIsNotArray()
  • assertIsNotBool()
  • assertIsNotFloat()
  • assertIsNotInt()
  • assertIsNotNumeric()
  • assertIsNotObject()
  • assertIsNotResource()
  • assertIsNotString()
  • assertIsNotScalar()
  • assertIsNotCallable()
  • assertIsNotIterable()

All 3 comments

What to use instead?

For those coming from the deprecation in the code, here is a quick summary of the methods to use instead (to save you a click):

  • assertIsArray()
  • assertIsBool()
  • assertIsFloat()
  • assertIsInt()
  • assertIsNumeric()
  • assertIsObject()
  • assertIsResource()
  • assertIsString()
  • assertIsScalar()
  • assertIsCallable()
  • assertIsIterable()
  • assertIsNotArray()
  • assertIsNotBool()
  • assertIsNotFloat()
  • assertIsNotInt()
  • assertIsNotNumeric()
  • assertIsNotObject()
  • assertIsNotResource()
  • assertIsNotString()
  • assertIsNotScalar()
  • assertIsNotCallable()
  • assertIsNotIterable()
Was this page helpful?
0 / 5 - 0 ratings

Related issues

greg0ire picture greg0ire  ·  4Comments

AnmSaiful picture AnmSaiful  ·  4Comments

ezzatron picture ezzatron  ·  3Comments

rentalhost picture rentalhost  ·  4Comments

keradus picture keradus  ·  3Comments