Skip to content

Data providers checks and typed expectException

Choose a tag to compare

@weirdan weirdan released this 27 Feb 14:00
· 365 commits to master since this release
24571b9

Features

  • expectException now requires class-string (use Exception\Name::class), unless allowCoercionFromStringToClassConst is enabled
  • MissingConstructor is now suppressed for all tests having initializers (setUp or methods marked with @before)
  • Data providers are now checked for presence and compatibility with test method they are used for
  • Test methods are now never reported as unused
  • Used data providers are now never reported as unused
  • Unused data providers are reported

Breaking changes

  • Dropped support for PHPUnit 5.x (versions from 6.x through 8.x are now supported)
  • Dropped support for Psalm versions before 3.0.13