refactor: comment arch presets in Arch.php

This commit is contained in:
Punyapal Shah
2025-04-20 15:19:56 +05:30
parent 19e9267021
commit 442a58d07f

View File

@ -2,57 +2,57 @@
use Pest\Expectation; use Pest\Expectation;
arch()->preset()->php()->ignoring([ // arch()->preset()->php()->ignoring([
Expectation::class, // Expectation::class,
'debug_backtrace', // 'debug_backtrace',
'var_export', // 'var_export',
'xdebug_info', // 'xdebug_info',
]); // ]);
arch()->preset()->strict()->ignoring([ // arch()->preset()->strict()->ignoring([
'usleep', // 'usleep',
]); // ]);
arch()->preset()->security()->ignoring([ // arch()->preset()->security()->ignoring([
'eval', // 'eval',
'str_shuffle', // 'str_shuffle',
'exec', // 'exec',
'unserialize', // 'unserialize',
'extract', // 'extract',
'assert', // 'assert',
]); // ]);
arch('globals') // arch('globals')
->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep']) // ->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep'])
->not->toBeUsed() // ->not->toBeUsed()
->ignoring(Expectation::class); // ->ignoring(Expectation::class);
arch('dependencies') // arch('dependencies')
->expect('Pest') // ->expect('Pest')
->toOnlyUse([ // ->toOnlyUse([
'dd', // 'dd',
'dump', // 'dump',
'expect', // 'expect',
'uses', // 'uses',
'Termwind', // 'Termwind',
'ParaTest', // 'ParaTest',
'Pest\Arch', // 'Pest\Arch',
'Pest\Mutate\Contracts\Configuration', // 'Pest\Mutate\Contracts\Configuration',
'Pest\Mutate\Decorators\TestCallDecorator', // 'Pest\Mutate\Decorators\TestCallDecorator',
'Pest\Mutate\Repositories\ConfigurationRepository', // 'Pest\Mutate\Repositories\ConfigurationRepository',
'Pest\Plugin', // 'Pest\Plugin',
'NunoMaduro\Collision', // 'NunoMaduro\Collision',
'Whoops', // 'Whoops',
'Symfony\Component\Console', // 'Symfony\Component\Console',
'Symfony\Component\Process', // 'Symfony\Component\Process',
])->ignoring(['Composer', 'PHPUnit', 'SebastianBergmann']); // ])->ignoring(['Composer', 'PHPUnit', 'SebastianBergmann']);
arch('contracts') // arch('contracts')
->expect('Pest\Contracts') // ->expect('Pest\Contracts')
->toOnlyUse([ // ->toOnlyUse([
'NunoMaduro\Collision\Contracts', // 'NunoMaduro\Collision\Contracts',
'Pest\Factories\TestCaseMethodFactory', // 'Pest\Factories\TestCaseMethodFactory',
'Symfony\Component\Console', // 'Symfony\Component\Console',
'Pest\Arch\Contracts', // 'Pest\Arch\Contracts',
'Pest\PendingCalls', // 'Pest\PendingCalls',
])->toBeInterfaces(); // ])->toBeInterfaces();