Skip to content

Commit 1ae5775

Browse files
committed
#1930 update phpunit config using phpunit --generate-configuration
1 parent 69dc6f3 commit 1ae5775

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
*.sublime-workspace
44
.DS_Store
55
.idea/
6-
.phpunit.cache/
7-
.phpcs-cache
86
/vendor
97
composer.lock
108
composer.phar
119
phpunit.xml
1210
phpstan.neon
13-
/.cache/phpstan/
11+
/.cache/

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<arg name="basepath" value="." />
44
<arg name="extensions" value="php" />
55
<arg name="parallel" value="80" />
6-
<arg name="cache" value=".phpcs-cache" />
6+
<arg name="cache" value=".cache/phpcs" />
77
<arg name="colors" />
88

99
<!-- Ignore warnings (n), show progress of the run (p), and show sniff names (s) -->

phpunit.xml.dist

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
cacheDirectory=".phpunit.cache"
7-
>
8-
<coverage/>
5+
cacheDirectory=".cache/phpunit"
6+
executionOrder="depends,defects"
7+
beStrictAboutCoverageMetadata="true"
8+
beStrictAboutOutputDuringTests="true"
9+
failOnRisky="true"
10+
failOnWarning="true">
911
<testsuites>
1012
<testsuite name="Test Suite">
1113
<directory>tests/</directory>
@@ -17,7 +19,10 @@
1719
<env name="SQLITE_DATABASE" value=":memory:"/>
1820
<env name="QUEUE_CONNECTION" value="database"/>
1921
</php>
20-
<source>
22+
23+
<source restrictDeprecations="true"
24+
restrictNotices="true"
25+
restrictWarnings="true">
2126
<include>
2227
<directory>./src</directory>
2328
</include>

0 commit comments

Comments
 (0)