Skip to content

Commit 7022636

Browse files
author
Evgeniy Zyubin
committed
Fix phpunit.xml.dist and psalm.xml.dist
1 parent 3e23844 commit 7022636

File tree

3 files changed

+28
-12
lines changed

3 files changed

+28
-12
lines changed

composer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"psr/http-message": "^1.0",
3535
"psr/http-server-handler": "^1.0",
3636
"psr/http-server-middleware": "^1.0",
37-
"psr/log": "^1.1 || ^2.0 || ^3.0"
37+
"psr/log": "^1.1|^2.0|^3.0"
3838
},
3939
"require-dev": {
4040
"devanych/di-container": "^2.1",
@@ -58,6 +58,12 @@
5858
"HttpSoft\\Tests\\Basis\\": "tests/"
5959
}
6060
},
61+
"config": {
62+
"sort-packages": true,
63+
"allow-plugins": {
64+
"composer/package-versions-deprecated": true
65+
}
66+
},
6167
"scripts": {
6268
"test": "phpunit --colors=always",
6369
"static": "psalm",

phpunit.xml.dist

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4-
bootstrap="vendor/autoload.php"
5-
executionOrder="depends,defects"
6-
beStrictAboutCoversAnnotation="true"
7-
beStrictAboutOutputDuringTests="true"
8-
beStrictAboutTodoAnnotatedTests="true"
9-
failOnRisky="true"
10-
failOnWarning="true"
11-
verbose="true"
12-
colors="true">
2+
<phpunit
3+
bootstrap="vendor/autoload.php"
4+
executionOrder="random"
5+
beStrictAboutCoversAnnotation="true"
6+
beStrictAboutOutputDuringTests="true"
7+
beStrictAboutTodoAnnotatedTests="true"
8+
convertWarningsToExceptions="true"
9+
convertNoticesToExceptions="true"
10+
convertErrorsToExceptions="true"
11+
resolveDependencies="true"
12+
stopOnFailure="false"
13+
failOnWarning="true"
14+
failOnRisky="true"
15+
verbose="true"
16+
colors="true"
17+
>
18+
<php>
19+
<ini name="error_reporting" value="-1"/>
20+
</php>
21+
1322
<testsuites>
1423
<testsuite name="HttpSoft Basis Test Suite">
1524
<directory>tests</directory>

psalm.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0"?>
22
<psalm
3+
errorLevel="1"
34
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
45
xmlns="https://getpsalm.org/schema/config"
56
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"

0 commit comments

Comments
 (0)