psalm/plugin-mockery
A Psalm plugin that adds static analysis support for the Mockery mocking framework, helping Psalm understand mock objects, expectations, and method calls in your tests. Install via Composer and enable it with psalm-plugin for more accurate type checking.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| alies-dev/psalm-tester | 0.86 | Run Psalm assertions and traces as phpt test files inside PHPUnit. Write --FILE--/--EXPECT-- fixtures, use EXPECTF for flexible matching, pass custom Psalm arguments globally or per test via --ARGS--, and skip tests conditionally with --SKIPIF--. | 1 | 1 | 0 | 11K | 3 | 20.0 | 60.4 | MIT | 1 month ago | |
| orklah/psalm-insane-comparison | 0.86 | Psalm plugin that flags “insane” string-to-number loose comparisons that change behavior in PHP 8 (RFC: Saner string to number comparisons). Helps you find risky == checks like non-empty string vs 0 before upgrading, and suggests safer typing/casts. | 34 | 35 | 4 | 9K | 0 | 4.3 | 33.5 | MIT | 1 year ago | |
| phpstan/phpstan-mockery | 0.86 | PHPStan extension for Mockery: infers intersection types for mocks (Foo&MockInterface), understands shouldReceive/shouldHaveReceived/allows/expects, supports partial/alias/overload mocks, multiple interfaces, and proper constructor args for accurate static analysis. | 110 | 107 | 25 | 1M | 8 | 9.4 | 57.8 | MIT | 1 year ago | |
| psalm/psalm-plugin-api | 0.85 | Psalm plugin API providing interfaces and helpers to build and integrate custom plugins with the Psalm static analysis tool, enabling extensions such as new checks, type providers, and project-specific analysis behavior. | 1 | 0 | 0 | 262K | 0 | 0.0 | 55.3 | — | — | |
| psalm/plugin-laravel | 0.85 | Laravel static analysis with built-in taint-based security scanning: traces user input from request to sink to catch SQL injection, XSS, shell injection, file traversal, SSRF, open redirects and timing-unsafe secret comparisons. Runs locally and in CI, no account or cloud upload. | 348 | 346 | 79 | 142K | 114 | 59.0 | 69.7 | MIT | 18 hours ago | |
| boesing/psalm-plugin-stringf | 0.85 | A Psalm plugin that statically validates printf and sprintf format strings, checking that placeholders match the number and types of arguments passed. Mismatches are caught during analysis instead of at runtime, using Psalm's type inference to verify format specifiers across your codebase. | 12 | — | 2 | — | 6 | 2.7 | 5.3 | NOASSERTION | 3 years ago |
|
| phpyh/psalm-tester | 0.85 | Run Psalm assertions from .phpt files. Write phpt tests with --FILE-- and --EXPECT/EXPECTF-- for traces and errors, then execute them via a PHPUnit test suite using PsalmTester. Supports per-suite default Psalm args and per-test --ARGS-- overrides. | 2 | 2 | 1 | 955 | 1 | 0.4 | 34.6 | MIT | 2 years ago | |
| php-static-analysis/psalm-plugin | 0.85 | A Psalm plugin for PHP static analysis that extends Psalm with additional checks and integrations, helping teams catch issues earlier and enforce consistent code quality in their projects. | 2 | 2 | 1 | 2K | 0 | 0.3 | 37.4 | MIT | 1 year ago | |
| psalm/plugin-phpunit | 0.85 | A Psalm plugin for PHPUnit that improves static analysis of test suites by teaching Psalm about PHPUnit-specific APIs, assertions, and mocking. Install with Composer, enable via psalm-plugin, and get more accurate type checking in your tests. Requires Psalm v4 or later. | 78 | 79 | 38 | 368K | 21 | 37.2 | 67.2 | — | 2 weeks ago | |
| php-mock/php-mock-mockery | 0.84 | Integrates php-mock with Mockery to mock PHP built-in functions in tests. Create namespaced function mocks with PHPMockery::mock() and set expectations/returns, then call Mockery::close(). Supports only unqualified calls; define early if needed. | 39 | 39 | 5 | 78K | 2 | 1.9 | 45.4 | WTFPL | 1 year ago | |
| php-mock/php-mock-integration | 0.84 | Integration layer for php-mock, making it easy to use PHP function mocks within popular test frameworks. Helps you stub built-in functions like time(), rand(), and file operations in specific namespaces, enabling reliable, isolated unit tests without touching global state. | 14 | 14 | 6 | 374K | 0 | 8.2 | 57.8 | WTFPL | 9 months ago | |
| mockery/mockery | 0.84 | Mockery is a flexible PHP mock object framework for unit testing with PHPUnit, PHPSpec, or any other testing framework. It offers a succinct, human-readable DSL for defining test doubles and integrates easily as a drop-in alternative to PHPUnit's mocking library. | 10,724 | 10,808 | 470 | 19M | 89 | 84.3 | 77.1 | BSD-3-Clause | 2 months ago | |
| codeception/mockery-module | 0.84 | Codeception module that integrates the Mockery mocking framework into your test suite, making it easy to create, use, and verify mock objects in PHP unit and functional tests with minimal setup. | 34 | 34 | 12 | 65K | 2 | 0.9 | 45.0 | MIT | 4 years ago | |
| tmarsteel/mockery-callable-mock | 0.84 | Create Mockery-friendly callable/function mocks in PHP. Set expectations (with args, counts), return values, stubs, and verify calls or non-calls. Can also wrap a real callable to spy while still invoking it. Requires PHP 7+. | 1 | 1 | 1 | 1K | 0 | 0.9 | 39.7 | — | 9 years ago | |
| psalm/phar | 0.84 | Install Psalm as a standalone PHAR to avoid Composer dependency conflicts. psalm/phar lets you add Psalm to any project or CI environment without pulling in extra packages, keeping your dependency tree clean while still running Psalm reliably. | 26 | 27 | 4 | 96K | 9 | 6.7 | 51.2 | — | 5 years ago | |
| weirdan/codeception-psalm-module | 0.84 | Codeception module that integrates Psalm static analysis into your test workflow. Run Psalm checks as part of Codeception suites to catch type issues and improve PHP code quality during CI and local testing. | 5 | 5 | 8 | 2K | 3 | 27.2 | 42.6 | MIT | 2 weeks ago | |
| php-mock/php-mock-prophecy | 0.84 | Prophecy integration for php-mock lets you mock PHP built-in functions like time, rand, and sleep inside Prophecy test doubles. Define expected behavior for global functions alongside class mocks, making time-dependent code testable without hard dependencies. | 16 | — | 4 | — | 0 | 1.5 | — | WTFPL | 11 months ago |
|
| weirdan/doctrine-psalm-plugin | 0.84 | A Doctrine plugin for Psalm (v4/v5) that improves static analysis of Doctrine entities and repositories through better type inference. Install via Composer, then enable it with the psalm-plugin command. | 86 | 89 | 45 | 119K | 29 | 39.5 | 63.9 | — | 2 weeks ago | |
| php-standard-library/psalm-plugin | 0.84 | Psalm plugin for PHP Standard Library (PSL) that improves static analysis of PSL Type specifications. It gives Psalm precise inferred types for shapes and coerce results, such as exact array shapes instead of broad unions. Install with Composer as a dev dependency and enable via psalm-plugin. | 25 | 25 | 7 | 39K | 1 | 12.5 | 46.6 | MIT | 7 months ago | |
| janmarek/mockista | 0.84 | Mockista is a lightweight mocking library for PHP/Laravel that helps you create and configure test doubles quickly. Define expectations, stub methods, and verify calls with a simple, fluent API to keep unit tests fast, readable, and maintainable. | 29 | 29 | 14 | 248 | 2 | 1.4 | 14.9 | — | — |
How can I help you explore Laravel packages today?