Skip to content

Commit 98f14b1

Browse files
committed
Update phpunit/phpunit recipe
1 parent aba1353 commit 98f14b1

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ phpstan.neon
2020

2121
###> phpunit/phpunit ###
2222
/phpunit.xml
23-
.phpunit.result.cache
23+
/.phpunit.cache/
2424
###< phpunit/phpunit ###
2525

2626
###> php-cs-fixer/shim ###

phpunit.xml.dist renamed to phpunit.dist.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3+
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
34
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
45
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
6+
backupGlobals="false"
57
colors="true"
68
bootstrap="tests/bootstrap.php"
9+
cacheDirectory=".phpunit.cache"
710
>
811
<php>
912
<ini name="display_errors" value="1" />
1013
<ini name="error_reporting" value="-1" />
1114
<server name="APP_ENV" value="test" force="true" />
1215
<server name="SHELL_VERBOSITY" value="-1" />
16+
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
17+
<server name="SYMFONY_PHPUNIT_VERSION" value="10.5" />
1318
</php>
1419

1520
<testsuites>
@@ -21,6 +26,12 @@
2126
</testsuite>
2227
</testsuites>
2328

29+
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
30+
<include>
31+
<directory>src</directory>
32+
</include>
33+
</source>
34+
2435
<extensions>
2536
</extensions>
2637
</phpunit>

symfony.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/bootstrap.php

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

0 commit comments

Comments
 (0)