Merge pull request #1455 from SimonBroekaert/feat/to_be_cased_correctly_arch_test_assertion

feat: add toBeCasedCorrectly arch test assertion
This commit is contained in:
nuno maduro
2026-04-10 11:38:46 +01:00
committed by GitHub
5 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<?php
use Pest\Arch\Exceptions\ArchExpectationFailedException;
test('pass')
->expect('Tests\Fixtures\Arch\ToBeCasedCorrectly\CorrectCasing')
->toBeCasedCorrectly();
test('failure')
->expect('Tests\Fixtures\Arch\ToBeCasedCorrectly\IncorrectCasing')
->toBeCasedCorrectly()
->throws(ArchExpectationFailedException::class);