Weave 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
Versionbasedtestskipper

Versionbasedtestskipper Laravel Package

ciaranmcnulty/versionbasedtestskipper

A PHPUnit extension that skips tests based on the running PHP version, letting you annotate tests with version constraints so they are automatically skipped or run on specific PHP versions, keeping suites passing across environments without manual conditional logic.

View on GitHub
Deep Wiki
Context7

ciaranmcnulty/versionbasedtestskipper is a lightweight PHPUnit extension that lets tests declare which PHP versions they support and automatically skips them when the running interpreter falls outside that range. Rather than guarding version-specific code with manual version_compare() checks or markTestSkipped() calls, you annotate tests in their docblocks; the listener reads those constraints and skips incompatible tests before they can error out.

  • Docblock annotations for minimum, maximum, or exact PHP versions
  • Prevents parse/fatal errors from syntax newer than the running PHP
  • Plugs into existing suites as a PHPUnit listener — no test rewrites
  • Keeps CI matrices green across many PHP versions
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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console