Skip to content

Commit

Permalink
Merge pull request #209 from ash-jc-allen/to-be-invokable
Browse files Browse the repository at this point in the history
Added docs for "toBeInvokable"
  • Loading branch information
nunomaduro authored Aug 1, 2023
2 parents 6624fe6 + 3f41731 commit eebe658
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions arch-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Architecture testing enables you to specify expectations that test whether your
- [`toBeClasses()`](#expect-toBeClasses)
- [`toBeEnums()`](#expect-toBeEnums)
- [`toBeInterfaces()`](#expect-toBeInterfaces)
- [`toBeInvokable()`](#expect-toBeInvokable)
- [`toBeFinal()`](#expect-toBeFinal)
- [`toBeReadonly()`](#expect-toBeReadonly)
- [`toBeTraits()`](#expect-toBeTraits)
Expand Down Expand Up @@ -79,6 +80,17 @@ test('app')
->toBeInterfaces();
```

<a name="expect-toBeInvokable"></a>
### `toBeInvokable()`

The `toBeInvokable()` method may be used to ensure that all files within a given namespace are invokable.

```php
test('app')
->expect('App\Actions')
->toBeInvokable();
```

<a name="expect-toBeTraits"></a>
### `toBeTraits()`

Expand Down

0 comments on commit eebe658

Please sign in to comment.