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

Phpunit Globals Laravel Package

zalas/phpunit-globals

A lightweight PHPUnit extension that backs up and restores PHP globals between tests so leaked global state can't break your suite. Register the listener, add the trait, and annotate which globals to preserve for clean, predictable test runs.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
phpunitgoodpractices/traits 0.85 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. 21 22 1 15K 3 2.6 28.1 MIT 4 years ago
View on GitHub
graham-campbell/testbench-core 0.85 Laravel TestBench Core by Graham Campbell provides reusable testing functionality for Laravel packages and applications, supporting PHPUnit 9-12 and Laravel 8-13 on PHP 7.4-8.5. 0 17 — 5K — 9.0 51.6 — —
View on GitHub
k2gl/phpunit-fluent-assertions 0.85 A PHPUnit extension that adds fluent, chainable assertions to your tests, making expectations more readable and expressive while reducing verbose assertion code and keeping familiar PHPUnit workflows. 2 2 0 586 0 17.3 36.4 MIT 1 month ago
View on GitHub
apie/phpunit-matrix-data-provider 0.84 PHPUnit data provider that generates a matrix of test cases across multiple PHP and Laravel versions in one go. Configure your supported version combinations and let it fan tests out automatically, keeping compatibility suites DRY and every run clearly labeled by environment. 0 0 0 1K 0 0.0 43.6 MIT —
View on GitHub
ergebnis/test-util 0.84 ergebnis/test-util is a lightweight collection of reusable test utilities for PHP projects, designed to reduce boilerplate and make common testing tasks clearer. Useful alongside PHPUnit for writing concise, maintainable tests with consistent helpers and assertions. 15 15 2 2K 0 0.1 20.9 MIT 4 years ago
View on GitHub
phpunitgoodpractices/polyfill 0.84 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 8K 6 2.1 28.5 MIT 3 years ago
View on GitHub
Context7
stephenjude/api-test-helper 0.84 stephenjude/api-test-helper is a Laravel package that streamlines API testing with convenient helpers and expressive assertions for HTTP and JSON responses. It reduces boilerplate around authentication, request building, and response checks, helping you write cleaner, faster, more reliable API test... 47 — 1 — 0 0.3 — MIT 3 years ago
View on GitHub
patchlevel/event-sourcing-phpunit 0.84 A dev testing toolkit for patchlevel/event-sourcing that lets you test aggregates and subscribers with clear given/when/then notation. Dispatch commands through #[Handle] methods, assert aggregate state with closures, and use subscriber setup, run, and teardown utilities. 1 1 2 11K 1 11.3 55.3 MIT 7 months ago
View on GitHub
pkly/phpunit-service-create-trait 0.84 A PHPUnit 12+ trait (PHP 8.4+) that builds real service instances with auto-mocked constructor and #[Required] dependencies. Dependencies stay as invisible stubs until fetched, so you only get mock verification where you ask for it. 0 0 0 289 0 20.8 39.4 MIT 1 month ago
View on GitHub
robiningelbrecht/phpunit-pretty-print 0.84 A PHPUnit result printer that transforms default test output into clean, colorful, readable reports. See progress, failures, and timing at a glance, with less noise and more useful detail during every test run. Easy to install and configure via phpunit.xml. 77 — 2 — 1 8.4 — MIT 7 months ago
herrera-io/phpunit-test-case 0.84 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 32 0 0.0 12.0 MIT —
View on GitHub
joshgaber/novaunit 0.84 NovaUnit provides PHPUnit-friendly helpers for testing Laravel Nova resources, fields, actions, filters, cards, and requests, letting you assert Nova behavior in your test suite with less boilerplate. 63 64 23 900 1 1.4 16.3 MIT 3 years ago
View on GitHub
testo/test 0.84 Testo plugin that adds the #[Test] attribute and discovery locator. Automatically finds attribute-marked test classes and methods for canonical attribute-driven test detection. Install with composer require --dev testo/test. 0 0 0 34K 0 0.0 55.3 — —
View on GitHub
phpspec/prophecy-phpunit 0.84 Integrates the Prophecy mocking library with PHPUnit for simpler, cleaner test doubles. Install via Composer and use the ProphecyTrait to call prophesize() inside your TestCase, set method predictions/returns, and reveal mocks for injection. 195 195 39 1M 1 11.7 56.7 MIT 8 months ago
View on GitHub
draw/tester 0.84 Tools for testing PHP apps: DataTester wraps PHPUnit assertions with a fluent, path-based API for arrays/objects. Includes PHPUnit extensions like CarbonReset to reset Carbon state between tests and SetUpAutowire to autowire test properties via attributes. 0 0 0 1K 0 0.0 43.0 MIT —
View on GitHub
php-mock/php-mock 0.83 Mock built-in PHP functions like time() or rand() in tests by leveraging PHP’s namespace fallback: define namespaced replacements for unqualified calls. Works in non-global namespaces; supports common test frameworks via integrations (e.g., PHPUnit). 370 375 19 726K 3 13.0 47.8 WTFPL 9 months ago
View on GitHub
nicolasguilloux/phpunit-dependency-injection-bundle 0.83 A PHPUnit dependency injection bundle that lets tests resolve services from a container instead of constructing dependencies manually. Keeps test classes lean and setup simple for container-based PHP apps. Low adoption, so expect limited docs and community support. 0 0 0 0 0 0.3 — MIT 4 years ago
View on GitHub
diablomedia/phpunit-pretty-printer 0.83 A drop-in PHPUnit result printer that swaps the default console output for colorful, readable test results. See test progress, failures, exception diffs, and timing at a glance, with configurable verbosity for CI and local runs. 77 — 14 — 2 1.5 1.1 MIT 4 years ago
vladahejda/phpunit-assert-exception 0.83 A PHPUnit helper that adds an assertException() assertion for testing exceptions thrown inside callbacks. Specify the expected exception class, message, and code in one concise call, reducing boilerplate and making exception tests clearer in PHP projects. 18 20 6 13 0 0.3 3.1 — —
View on GitHub
crodas/phpunit-compat 0.83 A PHPUnit compatibility package that helps bridge version differences, making test suites easier to run across varied PHPUnit environments with fewer compatibility issues. 0 0 0 15 0 0.0 16.6 — —
View on GitHub
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.
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle