Skip to content

Commit 0d3a80e

Browse files
committed
Define env in phpunit.xml
1 parent 5a401a5 commit 0d3a80e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

phpunit.xml.dist

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
<phpunit
33
bootstrap="tests/bootstrap.php"
44
>
5-
</phpunit>
5+
<php>
6+
<env name="SPC_IGNORE_BAD_HASH" value="yes" force="true" />
7+
</php>
8+
</phpunit>

tests/bootstrap.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22

33
declare(strict_types=1);
44

5-
putenv('SPC_IGNORE_BAD_HASH=yes');
6-
75
require_once __DIR__ . '/../src/globals/internal-env.php';
86
require_once __DIR__ . '/mock/SPC_store.php';

0 commit comments

Comments
 (0)