You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
End-to-end validation of the four PR2.0 changes (A1, A2, B1, B2, D1, D2)
on a real Laravel project (Partoo storeloc-saas, 136 files, 110 classes):
Layer violations: 12+ → 1 (the one remaining is a real
Domain → Infrastructure violation)
SOLID violations: 100+ → 6 (all legitimate; biggest controller is
10/10 instead of 104/104)
AppServiceProvider: flagged → exempt (Wiring layer)
Architecture score: B (73)
Add an integration test under tests/Integration/ that pins those
behaviours on a self-contained laravel-mini fixture (Action, Job,
Provider, Controller, Repository, Model, ignore-annotated Service):
- testActionIsApplicationNotController (A1)
- testServiceProviderIsWiring (A2)
- testNoLayerViolationsOnCommonLaravelStructure (A2)
- testJobUsingQueueableHasNoDipViolation (B1+B2)
- testIgnoreAnnotationSuppressesBillingServiceDip (D1)
- testBaselineRoundTripSuppressesAllRemainingViolations (D1)
A standalone PHP smoke runner is also included (run-partoo-smoke.php)
for ad-hoc execution against any local Laravel/Symfony project, no
Symfony kernel required.
Documentation:
- CHANGELOG.md gets a 2.0.0 section listing every breaking change
with rationale and a "Migrating from 1.x" subsection.
- README.md adds a "Migrating from 1.x" preamble and documents the
new options (--config, --baseline, --generate-baseline, --wizard),
the phpquality.json schema, the @phpquality-ignore annotation,
and a baseline-based CI workflow.
- DOCKERHUB.md mirrors the new options + a "What's new in 2.0"
blurb pointing at the changelog.
- composer.json branch-alias bumped to 2.0.x-dev.
Total test count: 510 → 544. All green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments