psalm/plugin-phpunit
Psalm plugin that understands PHPUnit tests to improve static analysis accuracy. Adds PHPUnit-aware stubs and type inference so assertions, mocks, and test helpers are checked correctly. Requires Psalm v4+. Install via Composer and enable with psalm-plugin.
Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.19.5...0.20.0
[@dataProvider](https://github.com/dataProvider) and #[DataProvider] (multiple) are considered by @Ocramius in https://github.com/psalm/psalm-plugin-phpunit/pull/151Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.19.4...0.19.5
#[Test], #[DataProvider], #[Before] attributes, cleaned up old PHPUnit/Prophecy support by @Ocramius in https://github.com/psalm/psalm-plugin-phpunit/pull/149Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.19.3...0.19.4
This release adds support for psalm v7.
Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.19.2...0.19.3
Bumps composer requirements for psalm v6 support.
Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.19.0...0.19.2
This release adds support for Psalm 6, dropping support for Psalm 4.
::set-output by @weirdan in https://github.com/psalm/psalm-plugin-phpunit/pull/132Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.18.4...0.19.0
Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.18.3...0.18.4
Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.18.2...0.18.3
Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.18.1...0.18.2
Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.17.0...0.18.0
Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.16.1...0.17.0
RuntimeException which is required to allow the plugin to be used with checkForThrowsDocblock Psalm option.This also allows the plugin to be installed in PHP 8 using composer
This release adds support for phpspec/prophecy-phpunit (forward-compatible integration between PHPUnit and Prophecy). Also @ktomk added definitions for TestCase::createConfiguredMock() and TestCase::createPartialMock().
Dependency on ocramius/package-versions was replaced with composer/package-versions-deprecated, which is 100% compatible replacement. If you get conflicts upgrading to this version, which may happen if you have direct dependency on ocramius/package-versions, replace it with composer/package-versions-deprecated.
@vladyslavstartsev performed some intenal cleanup.
Argument::that() calls with closure accepting any parameters were erroneously marked as invalid (thanks @mr-feek)This is a housekeeping release, dropping old stuff and providing a cleaner state to go forward from.
public static was missing from signatures of assertSame()/assertNotSame() (thanks @snapshotpl)[@dataProvider](https://github.com/dataProvider) \Some\External\Class::providerMethod) (#45, #44)list: [@return](https://github.com/return) iterable<list<type>>[@psalm-](https://github.com/psalm-)* annotation (#37)[@dataProvider](https://github.com/dataProvider) annotations were dropped)How can I help you explore Laravel packages today?