php artisan boost:add-skill nowo-tech/wallet-qr-bundle
Save this content to: .cursor/rules/40-tests-quality.mdc
When changing behavior, prefer adding or updating the nearest relevant test
(`tests/Unit/<Namespace>/` mirrors `src/`, container wiring in `tests/Integration/`).
Prefer:
- one focused test
- PHPUnit attributes (`#[DataProvider]`, `#[CoversClass]`, ...), never `@test` / `@dataProvider` docblocks
- `Symfony\Component\Clock\MockClock` for time and an in-memory PSR-3 logger for log assertions
- obvious placeholders such as `REDACTED-TEST` instead of realistic secrets in fixtures
- preserving the existing testing style
Keep PHP line coverage at 100% (`make test-coverage`; CI enforces it). PHPStan stays at level 8 with no ignores (`make phpstan`).
Do not introduce new testing frameworks unless explicitly requested.
Do not rewrite unrelated tests.
When changing behavior, prefer adding or updating the nearest relevant test
(tests/Unit/<Namespace>/ mirrors src/, container wiring in tests/Integration/).
Prefer:
#[DataProvider], #[CoversClass], ...), never @test / @dataProvider docblocksSymfony\Component\Clock\MockClock for time and an in-memory PSR-3 logger for log assertionsREDACTED-TEST instead of realistic secrets in fixturesKeep PHP line coverage at 100% (make test-coverage; CI enforces it). PHPStan stays at level 8 with no ignores (make phpstan).
Do not introduce new testing frameworks unless explicitly requested. Do not rewrite unrelated tests.
How can I help you explore Laravel packages today?