Skip to content

Commit

Permalink
Add basic Pest architecture tests (mostly to have the feature set up)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalchevrel committed Nov 23, 2023
1 parent 826cd37 commit 83a722e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Architecture/ArchitectureTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

test('Classes don\'t have stray debug calls')->expect(['dd', 'dump', 'var_dump'])->not->toBeUsed();
test('Classes use strict types')->expect(['ReleaseInsights', 'Cache'])->toUseStrictTypes();
test('The Cache class should not depend on the app')->expect('Cache')->toUseNothing();
test('Don`t use the app core classes in other namespaces')->expect('ReleaseInsights')->toOnlyBeUsedIn('ReleaseInsights');

0 comments on commit 83a722e

Please sign in to comment.