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

klesun picture klesun  路  4Comments

sebastianbergmann picture sebastianbergmann  路  4Comments

stephen-leavitt-sonyatv-com picture stephen-leavitt-sonyatv-com  路  4Comments

dkarlovi picture dkarlovi  路  3Comments

greg0ire picture greg0ire  路  4Comments