Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Plugin Phpunit Laravel Package

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.

View on GitHub
Deep Wiki
Context7
0.20.0

What's Changed

Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.19.5...0.20.0

0.19.5

What's Changed

Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.19.4...0.19.5

0.19.4

What's Changed

New Contributors

Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.19.3...0.19.4

0.19.3

This release adds support for psalm v7.

Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.19.2...0.19.3

0.19.2

Bumps composer requirements for psalm v6 support.

Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.19.0...0.19.2

0.19.0

This release adds support for Psalm 6, dropping support for Psalm 4.

What's Changed

New Contributors

Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.18.4...0.19.0

0.18.3

What's Changed

Full Changelog: https://github.com/psalm/psalm-plugin-phpunit/compare/0.18.2...0.18.3

0.18.1
0.16.1

Fixed

  • (#112) unused adapters for older Psalm versions were removed
0.16.0

Features

  • (#111) compatibility with future Psalm 5
0.15.2

Fixes

  • (#109) @weph fixed namespace of RuntimeException which is required to allow the plugin to be used with checkForThrowsDocblock Psalm option.
0.15.1

Fixes

  • The plugin no longer crashes when it encounters non-iterable return type on a data provider (#105, #106)
0.15.0

Features

  • The plugin can now be used with PHPUnit installed in a non-standard location (#103, thanks @VincentLanglet)

Fixes

  • Crash with missing test parameter type and a data provider returning tuples (#104, #102)
0.14.0
0.13.0
0.12.2

This also allows the plugin to be installed in PHP 8 using composer

0.12.1
0.12.0
0.11.0

Added

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().

BC Breaks

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.

Other changes

@vladyslavstartsev performed some intenal cleanup.

0.10.1

Fixed

  • (#72 / #73 ) Argument::that() calls with closure accepting any parameters were erroneously marked as invalid (thanks @mr-feek)
0.10.0

This is a housekeeping release, dropping old stuff and providing a cleaner state to go forward from.

Removed

  • Support for PHPUnit 7.5 was dropped
0.9.2

Fixed

  • (#50) public static was missing from signatures of assertSame()/assertNotSame() (thanks @snapshotpl)
0.9.1

Fixed

  • (#57, #58) External data providers were mistakenly reported missing when Psalm was run on a single test file
0.9.0
0.8.1

Features

  • Added support for external data providers ([@dataProvider](https://github.com/dataProvider) \Some\External\Class::providerMethod) (#45, #44)
  • Added support for providers returning list: [@return](https://github.com/return) iterable<list<type>>
0.8.0

Breaking changes

  • Minimum Psalm version is 3.6.2 now

Fixes

  • Fixed single-line docblock parsing (#38)
0.7.0

Fixes

  • Fixed crash on invalid [@psalm-](https://github.com/psalm-)* annotation (#37)
  • Fixed sticky provider usage (Psalm/plugin failed to mark providers as unused when corresponding [@dataProvider](https://github.com/dataProvider) annotations were dropped)

Changes

  • Dropped legacy compatibility layer

Breaking changes

  • Minimum Psalm version is 3.2.11 now
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport