Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Sep 9, 2024
1 parent 0b18ce8 commit 54879b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<a name="expectations"></a>
## Expectations

Granular expectations allow you to define specific architectural rules for your application. Here are the available expectations:
Expand Down Expand Up @@ -566,6 +567,7 @@ arch('app')
->toUseStrictTypes();
```

<a name="presets"></a>
## 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.
Expand Down Expand Up @@ -671,6 +673,7 @@ pest()->preset('silex', function (array $userNamespaces) {
});
```

<a name="modifiers"></a>
## 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:
Expand Down

0 comments on commit 54879b5

Please sign in to comment.