mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
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:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user