tourze/phpunit-symfony-kernel-test
A PHPUnit helper for Symfony applications that boots and manages the Symfony kernel during tests, giving access to the container and services with minimal setup. Simplifies writing kernel-aware integration tests in PHP.
TestCase, CreatesApplication, and HTTP testing utilities are the default and cover most needs. This package is only relevant for code that directly depends on Symfony kernel semantics — e.g. shared bundles, framework-agnostic packages, or legacy components that must be tested against a Symfony container. It introduces a parallel bootstrapping path alongside Laravel’s application kernel, which can cause divergence in service container configuration, environment handling, and middleware behavior. Fit is narrow, not general-purpose.TestCase or orchestra/testbench for package testing? What is the security and supply-chain posture?Application. That is acceptable for testing framework-agnostic packages but not for feature tests of a Laravel application.^2.0, run the full test suite, and inspect the diff between 1.0.8 and 2.0.0. If not yet adopted, evaluate on a spike branch with one representative test. Treat 2.0.0 as a new dependency rather than a drop-in replacement.composer.json constraints are the source of truth. Also check for conflicts with Laravel’s phpunit.xml bootstrap, CreatesApplication trait, and environment files.require-dev and document usage; (5) if already using 1.x, schedule the upgrade only after regression tests pass; (6) if no concrete need, defer adoption and prefer Laravel-native testing.KernelTestCase. Provide a short internal README explaining when to use it and how it differs from Laravel’s TestCase. Given the niche use case, ramp-up cost may exceed value unless there is a concrete need.How can I help you explore Laravel packages today?