Skip to content

Commit 2ab03d6

Browse files
authored
Make PHPUnit 10 config more consistent with PHPUnitBridge behavior (#1402)
* Make PHPUnit 10 config more consistent with PHPUnitBridge behavior * Set umask(1000) when debug is true Applies #889 to the PHPUnit recipe.
1 parent 8ee3177 commit 2ab03d6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

phpunit/phpunit/10.0/phpunit.dist.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
66
backupGlobals="false"
77
colors="true"
8+
failOnNotice="true"
9+
failOnWarning="true"
810
bootstrap="tests/bootstrap.php"
911
cacheDirectory=".phpunit.cache"
1012
>
@@ -13,8 +15,6 @@
1315
<ini name="error_reporting" value="-1" />
1416
<server name="APP_ENV" value="test" force="true" />
1517
<server name="SHELL_VERBOSITY" value="-1" />
16-
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
17-
<server name="SYMFONY_PHPUNIT_VERSION" value="10.5" />
1818
</php>
1919

2020
<testsuites>
@@ -23,7 +23,7 @@
2323
</testsuite>
2424
</testsuites>
2525

26-
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
26+
<source ignoreSuppressionOfDeprecations="true" restrictNotices="true" restrictWarnings="true">
2727
<include>
2828
<directory>src</directory>
2929
</include>

phpunit/phpunit/10.0/tests/bootstrap.php

+4
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77
if (method_exists(Dotenv::class, 'bootEnv')) {
88
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
99
}
10+
11+
if ($_SERVER['APP_DEBUG']) {
12+
umask(0000);
13+
}

0 commit comments

Comments
 (0)