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 https://github.com/symfony/recipes/pull/889 to the PHPUnit
recipe.
This commit is contained in:
Wouter de Jong
2025-04-14 11:49:29 +02:00
committed by GitHub
parent 8ee3177f13
commit 2ab03d62cc
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -5,6 +5,8 @@
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
colors="true"
failOnNotice="true"
failOnWarning="true"
bootstrap="tests/bootstrap.php"
cacheDirectory=".phpunit.cache"
>
@@ -13,8 +15,6 @@
<ini name="error_reporting" value="-1" />
<server name="APP_ENV" value="test" force="true" />
<server name="SHELL_VERBOSITY" value="-1" />
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
<server name="SYMFONY_PHPUNIT_VERSION" value="10.5" />
</php>
<testsuites>
@@ -23,7 +23,7 @@
</testsuite>
</testsuites>
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
<source ignoreSuppressionOfDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
</include>
+4
View File
@@ -7,3 +7,7 @@ require dirname(__DIR__).'/vendor/autoload.php';
if (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
}
if ($_SERVER['APP_DEBUG']) {
umask(0000);
}