dejwcake/testing-kit
A lightweight testing toolkit for Laravel and PHP packages, offering reusable helpers, custom assertions, and setup utilities that streamline unit and integration tests. Designed for package authors, it reduces boilerplate and keeps test suites consistent and easier to maintain.
MocksTranslator::useRealTranslator(), validator reset, no-DB test environment, phpmd 3, coverage in CI) indicates this is a test-infrastructure package for mocking Laravel's translator, not an Inertia runtime feature. It belongs in require-dev, sits beside PHPUnit/Pest and Laravel's testing helpers, and carries no production runtime role. The previous assessment's Inertia/snapshot framing should be treated as superseded: the sparse 1.2.0 note was over-interpreted, and no evidence in 1.3.0 supports hydration, SSR, or snapshot-replacement concerns.useRealTranslator() is an opt-in escape hatch from the mocked translator and resets the validator, so existing suites that never call it should behave as before. No config changes, migrations, or deprecations are indicated. Integration cost is a dependency bump plus a suite run.require-dev correctly? How does the mock bind against Laravel's Translator contract — does it cover __(), trans_choice(), validation messages, and JSON keys? Is useRealTranslator() scoped per-test or does it leak across a suite? Which Laravel/PHP/PHPUnit/Pest versions are supported? Did dropping PostgreSQL/MariaDB from CI accompany any removed test coverage we relied on? Are there upgrade notes for teams on 1.2.0?^1.3.0 in require-dev, run the full suite, and diff any tests that interact with the translator mock. Expect no code changes unless a test now needs useRealTranslator() to exercise real lang files. Rollback is a version pin.useRealTranslator(). 3) Add a small conformance test comparing mock behavior to the real translator for the keys you depend on. 4) Merge to main once green; no staged production rollout is required since the change is dev-only.useRealTranslator() semantics.How can I help you explore Laravel packages today?