tests: adds arch tests

This commit is contained in:
Nuno Maduro
2023-03-17 01:45:40 +00:00
parent b4b212a426
commit ae365324a8
3 changed files with 22 additions and 2 deletions

16
tests/Arch.php Normal file
View File

@ -0,0 +1,16 @@
<?php
use Pest\Expectation;
test('globals')
->expect(['dd', 'dump', 'ray'])
->not->toBeUsed()
->ignoring(Expectation::class);
test('contracts')
->expect('Pest\Contracts')
->toOnlyUse([
'NunoMaduro\Collision\Contracts',
'Pest\Factories\TestCaseMethodFactory',
'Symfony\Component\Console',
]);