Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions arch-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,28 @@ arch()->preset()->php();
arch()->preset()->security()->ignoring('md5');
```

## Note: arch() is Not to be Used Within a Test Block

Calls to arch() are meant to be run outside of test blocks.

For example, the following **will not work:**
```php
test('test arch test', function () {
arch()...
}

it('test arch test', function() {
arch()...
}
```

You should define your arch test in a Test.php file like so:
```php
arch()...
```

## Methods, Expectations and Modifiers

Now, let's dive into the various methods and modifiers available for architectural testing. In this section, you will learn:

- [Expectations](#expectations): Allows to specify granular architectural rules.
Expand Down