wyrihaximus/async-test-utilities
Async testing utilities for PHP/React: extend AsyncTestCase to run each PHPUnit test inside a Fiber with a default 30s timeout. Includes TimeOut attribute (class/method), plus helpers like random namespaces/directories and callable expectation utilities.
expectCallableOnce()) for unit/integration tests.Adopt if:
Look elsewhere if:
For Executives: "This package lets us test asynchronous Laravel/PHP features (e.g., queues, event listeners) with the same rigor as synchronous code—reducing flaky tests and speeding up development. It integrates seamlessly with our existing PHPUnit workflow while supporting modern async patterns like fibers and ReactPHP. Low risk (MIT license, active maintenance), high reward for teams scaling async systems."
For Engineering: *"We can now write deterministic async tests with:
expectCallableOnce() for async handlers).AsyncTestCase and start testing async logic reliably."*For QA/DevOps: "Reduces test flakiness in async workflows (e.g., job processing, webhooks) by enforcing timeouts and fiber isolation. Compatible with CI/CD pipelines using PHPUnit, so no tooling changes needed."
How can I help you explore Laravel packages today?