Skip to content

Releases: psalm/psalm-plugin-phpunit

Use less-strict checks when encountering mixed types

20 May 17:55
Compare
Choose a tag to compare
0.6.0

Split checks out into separate functions

Fix refs

16 May 22:26
Compare
Choose a tag to compare
0.5.8

Fix version method

Bump version req to PHP 7.1

16 May 22:07
34d1373
Compare
Choose a tag to compare
Merge pull request #31 from psalm/bump-package-versions

Bump package versions

Improve message for invalid provider

14 May 18:33
bda2f27
Compare
Choose a tag to compare

Improve handling for PossiblyUnusedMethod

27 Apr 20:21
f3138fb
Compare
Choose a tag to compare

This release allows PossiblyUnusedMethod to be ignored in --diff and threaded mode

Fix crashes with untyped provided-for params

25 Mar 17:47
902dadb
Compare
Choose a tag to compare
0.5.4

Don’t crash when provider param type is null

Fixed crashes with untyped providers and failures with const default values

07 Mar 12:51
c370c35
Compare
Choose a tag to compare

Fixes

  • Fatal error with dataProvider that has no explicit return type (#27)
  • Fails when test method default values are given as consts (#25)

Fixed checks of variadic test methods

02 Mar 19:48
e33ae73
Compare
Choose a tag to compare

Fixes

  • Variadics test methods referencing data providers are now correctly type checked (#23, #24)

Fixed handling of inherited initializer and providers/tests in traits

01 Mar 21:11
2fcf618
Compare
Choose a tag to compare

Fixes

  • Descendant of a class with initializers should produce no MissingConstructor (#19)
  • Trait analysis (#21)

Data providers checks and typed expectException

27 Feb 14:00
24571b9
Compare
Choose a tag to compare

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