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.
shouldBeDispatched() assertions).expectCallableOnce() for listeners).For Executives: "This package lets us write robust async tests for Laravel’s event-driven features (e.g., queues, webhooks) without reinventing the wheel. It integrates with PHPUnit, reduces flaky tests, and aligns with our roadmap to modernize testing. Low risk—MIT-licensed and actively maintained."
For Engineering:
"We can now test async code (e.g., sleep(1) in fibers, queue jobs) deterministically with built-in timeouts and assertions. Example: Verify a job is dispatched exactly 3 times using expectCallableExactly(). Compatible with Laravel’s testing tools and ReactPHP. Tradeoff: Minimal learning curve (extends AsyncTestCase)."
How can I help you explore Laravel packages today?