wyrihaximus/async-test-utilities
Async test utilities for PHP/React tests. Extend AsyncTestCase to run each test inside a Fiber, get random namespaces/directories for filesystem tests, and control per-test or per-class timeouts via the TimeOut attribute (default 30s).
RefreshDatabase, WithoutMiddleware).Illuminate\Support\Facades\Bus, Illuminate\Queue\AsyncJobs) but does not replace them—it’s a testing layer.AsyncTestCase requires rewriting test classes. Legacy tests using TestCase (Laravel’s base class) would need incremental migration.expectCallableExactly) might mask race conditions if not used carefully.parallel: 4).Illuminate\Bus\Queueable)event(new MyEvent))Http::async())TestCase for these.afterCommit hooks).test()->async) might reduce the need for this package.Queue::fake()) may suffice.Feature/Jobs) and rewrite 2–3 tests using AsyncTestCase.expectCallableExactly).AsyncTestCase.Loop::futureTick.expectCallableExactly.expectCallableOnce to assert transactions or observers fire.phpunit/phpunit to ^12.x in composer.json.composer require --dev wyrihaximus/async-test-utilities
extends \Tests\TestCase with extends \WyriHaximus\AsyncTestUtilities\AsyncTestCase.use statements for TimeOut, Loop, and async helpers.Loop::futureTick for async operations.Queue::assertPushed with expectCallableExactly where applicable.--timeout=60).AsyncTestCase and fiber-related functions.How can I help you explore Laravel packages today?