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

Phpunit Polyfills Laravel Package

yoast/phpunit-polyfills

Polyfills to write PHPUnit tests compatible across versions. Provides traits, test cases, and utilities that bridge API changes so one test suite can run on PHPUnit 7.5–9 and 11–12. Requires PHP 7.1+.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables cross-version PHPUnit compatibility without rewriting tests, reducing technical debt during upgrades
  • Eliminates the need for multiple test suites or version-specific code, streamlining maintenance
  • Strong build vs buy case: leverages a well-maintained open-source solution instead of in-house polyfill implementation
  • Critical for libraries/frameworks needing to support diverse PHPUnit versions across client projects
  • Reduces risk of test failures during PHPUnit upgrades by abstracting version-specific API changes

When to Consider This Package

  • Adopt when your project must support multiple PHPUnit versions (e.g., during gradual upgrades or for library development)
  • Ideal for teams maintaining codebases that need to run tests on PHPUnit 7.5-12.x without version-specific hacks
  • Avoid if targeting a single PHPUnit version (e.g., only 12.x), as it adds unnecessary dependency
  • Not suitable for projects using PHPUnit <7.5 or non-PHPUnit test frameworks
  • Skip if your test suite is small and version upgrades are infrequent (minimal ROI for simple projects)

How to Pitch It (Stakeholders)

  • Executives: "This lightweight package eliminates version-specific test maintenance, reducing engineering costs by 15-20
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