From 1675dd1d4193b9aa5210d07ac73efeefae0ca5f6 Mon Sep 17 00:00:00 2001 From: SimonBroekaert Date: Tue, 17 Feb 2026 19:03:46 +0100 Subject: [PATCH] chore: add tests for toBeCasedCorrectly() arch test --- tests/Features/Expect/toBeCasedCorrectly.php | 12 ++++++++++++ .../CorrectCasing/CorrectCasing.php | 5 +++++ .../IncorrectCasing/incorrectCasing.php | 5 +++++ .../incorrectDirectoryCasing/CorrectCasing.php | 5 +++++ 4 files changed, 27 insertions(+) create mode 100644 tests/Features/Expect/toBeCasedCorrectly.php create mode 100644 tests/Fixtures/Arch/ToBeCasedCorrectly/CorrectCasing/CorrectCasing.php create mode 100644 tests/Fixtures/Arch/ToBeCasedCorrectly/IncorrectCasing/incorrectCasing.php create mode 100644 tests/Fixtures/Arch/ToBeCasedCorrectly/incorrectDirectoryCasing/CorrectCasing.php diff --git a/tests/Features/Expect/toBeCasedCorrectly.php b/tests/Features/Expect/toBeCasedCorrectly.php new file mode 100644 index 00000000..6a8432d2 --- /dev/null +++ b/tests/Features/Expect/toBeCasedCorrectly.php @@ -0,0 +1,12 @@ +expect('Tests\Fixtures\Arch\ToBeCasedCorrectly\CorrectCasing') + ->toBeCasedCorrectly(); + +test('failure') + ->expect('Tests\Fixtures\Arch\ToBeCasedCorrectly\IncorrectCasing') + ->toBeCasedCorrectly() + ->throws(ArchExpectationFailedException::class); diff --git a/tests/Fixtures/Arch/ToBeCasedCorrectly/CorrectCasing/CorrectCasing.php b/tests/Fixtures/Arch/ToBeCasedCorrectly/CorrectCasing/CorrectCasing.php new file mode 100644 index 00000000..8418d969 --- /dev/null +++ b/tests/Fixtures/Arch/ToBeCasedCorrectly/CorrectCasing/CorrectCasing.php @@ -0,0 +1,5 @@ +