Skip to content

0.22.0

Choose a tag to compare

@alies-dev alies-dev released this 08 Nov 23:47
201934c

Highlights

  • PHPUnit 13 is supported.
  • New InvalidDataProvider issue for data providers that aren't public 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 after expectException().
  • Type narrowing after assertNotEmpty(): ?Customer becomes Customer, list<int>|null becomes non-empty-list<int>.
  • Fixes: no unused call issues after expectException(), provider issues are reported on the right line, @depends values count in provider checks, and magic method calls on ObjectProphecy are allowed.

What's Changed

Full Changelog: 0.21.1...0.22.0