Skip to content

Commit

Permalink
🏗️ Add architecture testing
Browse files Browse the repository at this point in the history
  • Loading branch information
siguici committed Nov 7, 2023
1 parent da36fa6 commit 4fc5bba
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('My')
->toUseStrictTypes();

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

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

0 comments on commit 4fc5bba

Please sign in to comment.