HttpKernel or a bridge like spatie/symfony-laravel).HttpTests or Pest/Laravel Dusk paradigms. However, Laravel’s built-in Http facade and Testing helpers (e.g., createApplication(), actingAs()) may reduce perceived value.phpspec/php-diff) and fixture-driven auth (AliceBundle) are valuable for Laravel’s test-driven workflows, but require adaptation (e.g., Laravel’s DatabaseMigrations, Factories, or Laravel Pint).HttpKernel, FrameworkExtraBundle) not native to Laravel. Mitigation:
HttpKernel as a microservice (via symfony/process or Docker).SymfonyBridge (e.g., spatie/symfony-laravel) to proxy requests.phpunit.xml can extend the bundle’s test case classes, but assertion methods (e.g., assertResponse()) must be mapped to Laravel’s assertJson()/assertStatus().Sanctum/Passport. Workaround:
AuthenticateWithFixtureTrait).HttpTests for auth, then delegate to the bundle for assertions.^8.0 but no tests).HttpClient or Pest testing.laravel-shift/laravel-test-helpers or spatie/laravel-test-factory replace core functionality?JsonApiTestCase be extended or replaced with a Laravel trait?JSONAssert) that overlap?mocksado/laravel-test-tools) with active development?Laravel + Symfony Hybrid:
HttpClient or Process.tests/Symfony namespace.HttpKernel in Laravel’s TestingPipeline.SymfonyApiTestTrait).Tooling Compatibility:
Laravel\Lumen\Testing\TestCase.HttpTests.vendor/bin/assert-json-diff).| Feature | Laravel Native | Bundle Support | Workaround |
|---|---|---|---|
| API Requests | Http::get() |
Guzzle under the hood | Use HttpClient adapter |
| JWT Auth | Sanctum/Passport | LexikBundle | Custom trait with shared logic |
| Fixtures | Factories/Migrations | AliceBundle | laravel-shift/laravel-test-helpers |
| Response Assertions | assertJson() |
assertResponse() |
Trait wrapper |
| PHPUnit 8.x | Supported | Unverified | Pin to PHPUnit 6.x or fork |
HttpKernel, FrameworkExtraBundle) in tests/.JsonApiTestCase + Laravel\Testing\TestCase.assertResponse() to delegate to Laravel’s assertJson().AuthenticateWithFixtureTrait for Sanctum/Passport.laravel-shift.HttpKernel or FrameworkExtra.README.laravel.md.sensio/framework-extra).assertResponse() may require Symfony kernel logs.StaticClient may conflict with Laravel’s ParallelTests.symfony/process).How can I help you explore Laravel packages today?