diff --git a/tests/Architecture/ApplicationTest.php b/tests/Architecture/ApplicationTest.php index b108cd4..c156afe 100644 --- a/tests/Architecture/ApplicationTest.php +++ b/tests/Architecture/ApplicationTest.php @@ -33,9 +33,48 @@ describe('Application Architecture Rules', function (): void { 'App', ]); - arch('Application layer does not depend on Illuminate framework') + arch('Application layer does not depend on Illuminate or Symfony frameworks') ->expect('Application') - ->not->toUse('Illuminate'); + ->not->toUse([ + 'Illuminate', + 'Symfony', + ]); + + arch('Application layer does not use Laravel helper functions') + ->expect('Application') + ->not->toUse([ + 'abort', + 'app', + 'auth', + 'asset', + 'back', + 'bcrypt', + 'broadcast', + 'cache', + 'config', + 'cookie', + 'csrf_token', + 'dd', + 'dump', + 'decrypt', + 'dispatch', + 'event', + 'factory', + 'logger', + 'redirect', + 'request', + 'response', + 'route', + 'session', + 'storage', + 'url', + 'throw_if', + 'throw_unless', + '__', + 'trans', + 'trans_choice', + 'view', + ]); arch('Application layer uses strict types') ->expect('Application')