Repository navigation
0.22.0
Highlights
- PHPUnit 13 is supported.
- New
InvalidDataProviderissue for data providers that aren'tpublic static. PHPUnit 11 and later reject them at runtime, and PHPUnit 10.5 deprecates them. checkForThrowsDocblock: PHPUnit's own exceptions (failed assertions, mock builder errors) no longer need@throws. Neither do calls afterexpectException().- Type narrowing after
assertNotEmpty():?CustomerbecomesCustomer,list<int>|nullbecomesnon-empty-list<int>. - Fixes: no unused call issues after
expectException(), provider issues are reported on the right line,@dependsvalues count in provider checks, and magic method calls onObjectProphecyare allowed.
What's Changed
- Keep tools/ out of the dist archive by @alies-dev in #168
- Suppress unused call issues after expectException by @alies-dev in #169
- Add agent guidelines and skills by @alies-dev in #189
- docs: describe Psalm versions without the rc18 trap by @alies-dev in #192
- Make CI install current Psalm instead of 7.0.0-rc18 by @alies-dev in #193
- Fix: allow magic method calls on
ObjectProphecyby @alies-dev in #171 - Fix: report data provider issues on the right line by @alies-dev in #170
- Shorten README, add logos and badges by @alies-dev in #195
- Allow throws after expectException without @throws by @alies-dev in #172
- Fix: account for
@dependsvalues in data provider checks by @alies-dev in #191 - feat(composer): allow PHPUnit 13 in require-dev by @alies-dev in #200
- Report non-static and non-public data providers by @alies-dev in #197
- Ignore PHPUnit's own exceptions under
checkForThrowsDocblockby @alies-dev in #194 - Speed up CI tests by @alies-dev in #201
- Narrow types after
assertNotEmpty()by @alies-dev in #196 - Fix flaky Behat cache errors in parallel CI runs by @alies-dev in #203
Full Changelog: 0.21.1...0.22.0