phpunitgoodpractices/traits
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| pkly/phpunit-service-create-trait | 0.87 | 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 | 115 | 0 | 21.4 | 34.8 | MIT | 2 weeks ago | |
| contributte/phpunit | 0.86 | 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.9 | — | MIT | 5 months ago | |
| maks3w/phpunit-methods-trait | 0.85 | 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. | 1 | 2 | 1 | 23 | 0 | 2.8 | 15.2 | NOASSERTION | 5 years ago | |
| herrera-io/phpunit-test-case | 0.85 | 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 | 77 | 0 | 0.0 | 15.6 | MIT | — | |
| 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 | 0 | 0 | 0.0 | — | MIT | — | |
| phpunitgoodpractices/polyfill | 0.80 | Polyfill library for PHPUnit best practices, providing compatibility helpers and shims to keep test suites consistent across PHPUnit versions. Useful for package maintainers aiming for cleaner, more portable tests without forcing specific PHPUnit upgrades. | 11 | 11 | 1 | 9K | 6 | 2.1 | 28.6 | MIT | 3 years ago |
How can I help you explore Laravel packages today?