feat: not.toHaveSuspiciousCharacters

This commit is contained in:
Nuno Maduro
2025-07-26 07:47:00 -06:00
parent 66e59efec6
commit 4c88590b89
5 changed files with 30 additions and 11 deletions

View File

@ -4,6 +4,9 @@ declare(strict_types=1);
namespace Pest\ArchPresets;
use Pest\Arch\Contracts\ArchExpectation;
use Pest\Expectation;
/**
* @internal
*/
@ -89,5 +92,9 @@ final class Php extends AbstractPreset
'xdebug_var_dump',
'trap',
])->not->toBeUsed();
$this->eachUserNamespace(
fn (Expectation $namespace): ArchExpectation => $namespace->not->toHaveSuspiciousCharacters(),
);
}
}