mirror of
https://github.com/pestphp/pest.git
synced 2026-03-05 23:37:22 +01:00
39 lines
769 B
PHP
39 lines
769 B
PHP
<?php
|
|
|
|
use Pest\Expectation;
|
|
|
|
arch()->preset()->php()->ignoring([
|
|
Expectation::class,
|
|
'debug_backtrace',
|
|
'var_export',
|
|
'xdebug_info',
|
|
]);
|
|
|
|
arch()->preset()->strict()->ignoring([
|
|
'usleep',
|
|
]);
|
|
|
|
arch()->preset()->security()->ignoring([
|
|
'eval',
|
|
'str_shuffle',
|
|
'exec',
|
|
'unserialize',
|
|
'extract',
|
|
'assert',
|
|
]);
|
|
|
|
arch('globals')
|
|
->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep'])
|
|
->not->toBeUsed()
|
|
->ignoring(Expectation::class);
|
|
|
|
arch('contracts')
|
|
->expect('Pest\Contracts')
|
|
->toOnlyUse([
|
|
'NunoMaduro\Collision\Contracts',
|
|
'Pest\Factories\TestCaseMethodFactory',
|
|
'Symfony\Component\Console',
|
|
'Pest\Arch\Contracts',
|
|
'Pest\PendingCalls',
|
|
])->toBeInterfaces();
|