Define env in phpunit.xml

This commit is contained in:
crazywhalecc 2025-06-16 12:34:18 +08:00 committed by Jerry Ma
parent 5a401a5f92
commit 0d3a80e582
2 changed files with 4 additions and 3 deletions

View File

@ -2,4 +2,7 @@
<phpunit
bootstrap="tests/bootstrap.php"
>
<php>
<env name="SPC_IGNORE_BAD_HASH" value="yes" force="true" />
</php>
</phpunit>

View File

@ -2,7 +2,5 @@
declare(strict_types=1);
putenv('SPC_IGNORE_BAD_HASH=yes');
require_once __DIR__ . '/../src/globals/internal-env.php';
require_once __DIR__ . '/mock/SPC_store.php';