Files
pest/tests/Arch.php
T
Jhon Farias cd5bae7e91 fix(tia): restrict Xdebug coverage to the source scope before tracing (#2091)
* fix(tia): restrict Xdebug coverage to the source scope before tracing

* fix(tia): set the Xdebug exclude filter before the bootstrap and keep case twins traced

---------

Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
2026-12-04 14:13:25 +05:30

41 lines
793 B
PHP

<?php
declare(strict_types=1);
use Pest\Expectation;
use Pest\Plugins\Tia\Baselines\GitHubRemote;
use Pest\Plugins\Tia\BaselineSync;
arch()->preset()->php()->ignoring([
Expectation::class,
'debug_backtrace',
'var_export',
'xdebug_info',
'xdebug_start_code_coverage',
'xdebug_stop_code_coverage',
'xdebug_get_code_coverage',
'xdebug_set_filter',
]);
arch()->preset()->strict()->ignoring([
BaselineSync::class,
GitHubRemote::class,
'usleep',
]);
arch()->preset()->security()->ignoring([
'eval',
'str_shuffle',
'exec',
'md5',
'unserialize',
'uniqid',
'extract',
'assert',
]);
arch('globals')
->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep'])
->not->toBeUsed()
->ignoring(Expectation::class);