diff --git a/arch-testing.md b/arch-testing.md index 98f9629..ece48ac 100644 --- a/arch-testing.md +++ b/arch-testing.md @@ -36,6 +36,7 @@ Now, let's dive into the various methods and modifiers available for architectur - [Presets](#presets): Allows to use predefined sets of granular architectural rules. - [Modifiers](#modifiers): To exclude or ignore certain types of files, classes, functions or lines of code. + ## Expectations Granular expectations allow you to define specific architectural rules for your application. Here are the available expectations: @@ -566,6 +567,7 @@ arch('app') ->toUseStrictTypes(); ``` + ## Presets Sometimes, writing arch expectations from scratch can be time-consuming, specifically when working on a new project, and you just want to ensure that the basic architectural rules are met. @@ -671,6 +673,7 @@ pest()->preset('silex', function (array $userNamespaces) { }); ``` + ## Modifiers Sometimes, you may want to apply the given expectation but excluding certain types of files, or ignoring certain classes, functions, or specific lines of code. For that, you may use the following methods: