diff --git a/arch-testing.md b/arch-testing.md index c16b622..459a446 100644 --- a/arch-testing.md +++ b/arch-testing.md @@ -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) @@ -79,6 +80,17 @@ test('app') ->toBeInterfaces(); ``` + +### `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(); +``` + ### `toBeTraits()`