From 83a722e0a667bf72a6ea0172a37bab87421a7182 Mon Sep 17 00:00:00 2001 From: Pascal Chevrel Date: Thu, 23 Nov 2023 17:51:50 +0100 Subject: [PATCH] Add basic Pest architecture tests (mostly to have the feature set up) --- tests/Architecture/ArchitectureTest.php | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/Architecture/ArchitectureTest.php diff --git a/tests/Architecture/ArchitectureTest.php b/tests/Architecture/ArchitectureTest.php new file mode 100644 index 0000000..7eb8ac5 --- /dev/null +++ b/tests/Architecture/ArchitectureTest.php @@ -0,0 +1,6 @@ +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');