This pull request is a work in progress, and presets are currently being defined...
This pull request introduces the concept of "Arch Presets" to Pest 3; witch a simple way of executing a "group" of arch tests predefined by the Pest team.
While the existing arch tests (https://pestphp.com/docs/arch-testing) are powerful, they still require you to granular define the rules you want to enforce. This is great for fine-grained control, but can be a bit verbose for simple use-cases.
// before:
arch('globals')
->expect(['dd', 'dump'])
->not->toBeUsed();
// + 100 rules written by you
This pull request introduces the concept of "Arch Presets" to Pest 3; witch a simple way of executing a "group" of arch tests predefined by the Pest team.
While the existing arch tests (https://pestphp.com/docs/arch-testing) are powerful, they still require you to granular define the rules you want to enforce. This is great for fine-grained control, but can be a bit verbose for simple use-cases.