maks3w/phpunit-methods-trait
PHP trait exposing PHPUnit TestCase helper methods for use inside reusable test traits. Lets traits call mocking, expectations, and other TestCase APIs without extending TestCase directly; assertions are via PHPUnit\Framework\Assert.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| b2pweb/bdf-phpunit | 0.90 | Laravel/PHPUnit helper package for working with BDF/SEPA bank files in tests. Provides utilities and test assertions to validate BDF structures and parsing results, making it easier to write reliable unit tests around banking file imports. | 0 | 0 | 0 | 439 | 0 | 0.0 | 36.5 | MIT | — | |
| miladimos/laravel-toolkit | 0.87 | — | 7 | 7 | 2 | 3 | 0 | 0.1 | 1.9 | — | — | |
| seec/phpunit-consecutive-params | 0.86 | Bring back PHPUnit’s removed withConsecutive behavior. This lightweight dev helper provides a drop-in replacement via a trait, letting you assert different parameter sets across consecutive mock calls using ->with(...$this->withConsecutive(...)). | 18 | 18 | 2 | 35K | 0 | 2.3 | 45.2 | GPL-3.0 | 1 year ago | |
| symfonycasts/internal-test-helpers | 0.86 | Internal test utilities from SymfonyCasts to streamline PHPUnit and Symfony/Laravel package testing. Provides shared helpers, fixtures, and assertions used across SymfonyCasts projects to reduce boilerplate and keep tests consistent and readable. | 0 | — | 2 | — | 0 | 0.1 | — | — | — | |
| contributte/phpunit | 0.85 | PHPUnit integration helpers by Contributte for PHP projects. Provides lightweight tooling and conventions to simplify writing, running, and organizing tests, with sensible defaults and compatibility aimed at smoother CI and developer experience. | 1 | 2 | 2 | 1K | 0 | 11.2 | 42.4 | MIT | 6 months ago | |
| cisse/symfony-traits | 0.85 | — | 1 | 1 | 0 | 0 | 0 | 0.3 | — | MIT | 7 years ago | |
| rybakit/phpunit-extras | 0.85 | Extend PHPUnit with custom annotations, placeholders, requirements, and expectations. Build and integrate your own @tags, version/package/expression-based requirements, and reusable expectation helpers. Optional support for composer/semver, package-versions, and symfony/expression-language. | 47 | 47 | 1 | 762 | 0 | 2.2 | 17.2 | MIT | 4 years ago | |
| wyrihaximus/test-utilities | 0.84 | A set of PHP test utilities for package development: a PHPUnit TestCase with helpers like random namespaces and temp directories, plus ready-made configuration defaults for PHPStan and Rector (paths and docblock-to-attribute conversions). | 7 | 7 | 1 | 145K | 6 | 32.6 | 69.2 | MIT | 2 weeks ago | |
| digitalrevolution/phpunit-extensions | 0.84 | — | 3 | 3 | 2 | 3K | 1 | 21.0 | 44.3 | MIT | 4 months ago | |
| lastdragon-ru/phpunit-extensions | 0.84 | PHPUnit extensions for PHP projects, adding extra test utilities and helpers to streamline assertions, fixtures, and test setup. Designed to integrate cleanly with PHPUnit and improve developer productivity in automated testing workflows. | 0 | 0 | 0 | 33 | 0 | 0.0 | 21.2 | MIT | — | |
| herrera-io/phpunit-test-case | 0.83 | PHPUnit TestCase class and Extras trait that add helpers for common test chores: create/delete temporary files and directories, call protected/private methods, and get/set protected/private properties. Use as a base class or mix into your own test case. | 1 | 1 | 0 | 18 | 0 | 0.0 | 9.8 | MIT | — | |
| adroit11/laravel-tests | 0.83 | Reusable Laravel testing package with publishable test stubs, custom assertions, and helper utilities. Drop into Laravel 10/11 (PHP 8.1+) and run with PHPUnit or Pest to speed up common feature and integration testing setups. | 2 | 2 | 0 | 0 | 0 | 0.0 | — | — | — | |
| drjele/symfony-phpunit | 0.82 | Symfony bridge for running PHPUnit tests with a simple, consistent setup. Provides helpers and configuration to integrate PHPUnit into Symfony projects, smoothing bootstrapping and test execution across environments. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| pkly/phpunit-service-create-trait | 0.81 | Laravel/PHP trait that helps you quickly create service instances in PHPUnit tests, reducing boilerplate when setting up dependencies. Handy for service-layer unit tests where you want consistent, reusable test setup. | 0 | 0 | 0 | 64 | 0 | 19.3 | 28.9 | MIT | 1 month ago | |
| phpunitgoodpractices/traits | 0.79 | A small set of PHP traits to improve PHPUnit test code by reducing boilerplate and encouraging cleaner, reusable assertions and setup patterns. Useful for Laravel and general PHP projects that want more readable, maintainable tests. | 22 | 22 | 1 | 12K | 3 | 2.6 | 26.9 | MIT | 3 years ago | |
| dms/phpunit-arraysubset-asserts | 0.74 | Polyfill for PHPUnit’s deprecated/removed assertArraySubset. Adds Assert::assertArraySubset() and a trait to keep existing tests working. Uses native PHPUnit behavior when available; provides the missing assertion for PHPUnit 8+ while supporting older versions. | 144 | 144 | 33 | 510K | 3 | 5.3 | 52.2 | MIT | 3 years ago |
How can I help you explore Laravel packages today?