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 or a shared trait. The decision it informs is narrow but recurring: do we maintain our own kernel-bootstrap harness, or take a small dependency that someone else maintains?require-dev, so a stalled maintenance cycle is a test-suite inconvenience, never a production incident.Consider adoption when:
Look elsewhere — or write ~50 lines of your own — when:
TestCase and RefreshDatabase already solve this; adding a Symfony-kernel helper is friction with no payoff.KernelTestCase is the safer default.For executives: This is a small developer-productivity dependency for automated testing. It does not touch customers, revenue paths, or production runtime. The only decision on the table is a version bump: the package just moved from 1.0.8 to 2.0.0 with no written explanation of what broke. My recommendation is to stay on the current version until an engineer spends a short, bounded spike reading the diff. Cost of waiting is effectively zero; cost of a blind upgrade is a red build that blocks the team at the worst possible time. No budget, headcount, or roadmap impact.
For engineering: This is a PHPUnit helper that boots a Symfony kernel for you, replacing duplicated test setup. Two things matter about 2.0.0: it's a major version, and the release notes are a changelog URL and nothing else — no migration guide, no list of removed APIs. So: keep it in require-dev, pin the version explicitly, and treat the upgrade as a PR with its own review rather than a routine bump. If our suites are Laravel-only, question whether we need it at all versus the framework's own test case. If we're already in the Tourze ecosystem, the marginal cost is low and the convenience is real — just don't let an undocumented major version ride along inside an unrelated dependency update.
How can I help you explore Laravel packages today?