From 54879b5c5b4a24a5caf6200231e47a60e6319790 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Mon, 9 Sep 2024 23:37:02 +0100 Subject: [PATCH] wip --- arch-testing.md | 3 +++ 1 file changed, 3 insertions(+) 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: