Skip to content

Commit

Permalink
✅ Add architecture testing
Browse files Browse the repository at this point in the history
  • Loading branch information
siguici committed Oct 23, 2023
1 parent 8e252bd commit 8b8f98a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/ArchTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

declare(strict_types=1);

test('globals')
->expect(['dd', 'dump', 'ray'])
->not->toBeUsed();

test('classes')
->expect('Sikessem\Skeleton')
->toUseStrictTypes();

test('contracts')
->expect('Sikessem\Skeleton\Contracts')
->interfaces()
->toOnlyBeUsedIn('Sikessem\Skeleton', 'Sikessem\Skeleton\Contracts');

test('concerns')
->expect('Sikessem\Skeleton\Concerns')
->traits()
->toOnlyBeUsedIn('Sikessem\Skeleton', 'Sikessem\Skeleton\Concerns');

0 comments on commit 8b8f98a

Please sign in to comment.