Skip to content

Commit 11ad96a

Browse files
committed
Configure QA tools
1 parent a3b036c commit 11ad96a

File tree

5 files changed

+59
-1
lines changed

5 files changed

+59
-1
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/vendor/
22
/composer.lock
33
/.phpcs.cache
4-
/infection-log.txt
4+
/infection.log
55
/.phpunit.result.cache

infection.json.dist

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"timeout": 1,
3+
"source": {
4+
"directories": ["src"]
5+
},
6+
"logs": {
7+
"text": "infection.log"
8+
}
9+
}

phpcs.xml.dist

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0"?>
2+
<ruleset>
3+
<arg name="basepath" value="." />
4+
<arg name="extensions" value="php" />
5+
<arg name="parallel" value="80" />
6+
<arg name="colors" />
7+
<arg name="cache" value=".phpcs.cache" />
8+
<arg value="p" />
9+
10+
<file>src</file>
11+
<file>tests</file>
12+
13+
<rule ref="Lcobucci" />
14+
</ruleset>

phpstan.neon.dist

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
includes:
2+
- vendor/phpstan/phpstan-phpunit/extension.neon
3+
- vendor/phpstan/phpstan-phpunit/rules.neon
4+
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
5+
- vendor/phpstan/phpstan-strict-rules/rules.neon
6+
7+
parameters:
8+
level: 7
9+
paths:
10+
- src
11+
- tests

phpunit.xml.dist

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?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+
colors="true"
5+
verbose="true"
6+
beStrictAboutOutputDuringTests="true"
7+
beStrictAboutTodoAnnotatedTests="true"
8+
beStrictAboutChangesToGlobalState="true"
9+
beStrictAboutCoversAnnotation="true"
10+
beStrictAboutResourceUsageDuringSmallTests="true"
11+
forceCoversAnnotation="true"
12+
>
13+
<testsuites>
14+
<testsuite name="unit">
15+
<directory>tests</directory>
16+
</testsuite>
17+
</testsuites>
18+
19+
<filter>
20+
<whitelist>
21+
<directory>src</directory>
22+
</whitelist>
23+
</filter>
24+
</phpunit>

0 commit comments

Comments
 (0)