diff --git a/tests/ArchTest.php b/tests/ArchTest.php new file mode 100644 index 0000000..4eff914 --- /dev/null +++ b/tests/ArchTest.php @@ -0,0 +1,21 @@ +expect(['dd', 'dump', 'ray']) + ->not->toBeUsed(); + +test('classes') + ->expect('My') + ->toUseStrictTypes(); + +test('contracts') + ->expect('My\Contracts') + ->interfaces() + ->toOnlyBeUsedIn('My', 'My\Contracts'); + +test('concerns') + ->expect('My\Concerns') + ->traits() + ->toOnlyBeUsedIn('My', 'My\Concerns');