mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
43 lines
953 B
PHP
43 lines
953 B
PHP
<?php
|
|
|
|
use Pest\Expectation;
|
|
|
|
arch()->preset()->base()->ignoring([
|
|
Expectation::class,
|
|
'eval',
|
|
]);
|
|
|
|
arch()->preset()->strict();
|
|
|
|
arch('globals')
|
|
->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep'])
|
|
->not->toBeUsed()
|
|
->ignoring(Expectation::class);
|
|
|
|
arch('dependencies')
|
|
->expect('Pest')
|
|
->toOnlyUse([
|
|
'dd',
|
|
'dump',
|
|
'expect',
|
|
'uses',
|
|
'Termwind',
|
|
'ParaTest',
|
|
'Pest\Arch',
|
|
'Pest\Plugin',
|
|
'NunoMaduro\Collision',
|
|
'Whoops',
|
|
'Symfony\Component\Console',
|
|
'Symfony\Component\Process',
|
|
])->ignoring(['Composer', 'PHPUnit', 'SebastianBergmann']);
|
|
|
|
arch('contracts')
|
|
->expect('Pest\Contracts')
|
|
->toOnlyUse([
|
|
'NunoMaduro\Collision\Contracts',
|
|
'Pest\Factories\TestCaseMethodFactory',
|
|
'Symfony\Component\Console',
|
|
'Pest\Arch\Contracts',
|
|
'Pest\PendingCalls',
|
|
])->toBeInterfaces();
|