Skip to content

Commit 5b705b8

Browse files
committed
Add PHPUnit configuration and update ignores
1 parent f375841 commit 5b705b8

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
tests/ export-ignore
22
.github/ export-ignore
3+
.gitignore export-ignore
4+
.gitattributes export-ignore
5+
.php-cs-fixer.php export-ignore
6+
CHANGELOG.md export-ignore
7+
composer.lock export-ignore
8+
phpstan.neon export-ignore
9+
phpunit.xml.dist export-ignore

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.idea/
2-
.phpunit.result.cache
32
.php-cs-fixer.cache
43
vendor/
4+
.phpunit.cache

phpunit.xml.dist

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5+
bootstrap="./vendor/autoload.php"
6+
colors="true"
7+
cacheDirectory=".phpunit.cache"
8+
displayDetailsOnAllIssues="true"
9+
failOnWarning="true"
10+
failOnNotice="true"
11+
failOnDeprecation="true"
12+
failOnPhpunitDeprecation="true"
13+
>
14+
<testsuites>
15+
<testsuite name="Tests">
16+
<directory>./tests/</directory>
17+
</testsuite>
18+
</testsuites>
19+
<source ignoreIndirectDeprecations="true">
20+
<include>
21+
<directory suffix=".php">./src</directory>
22+
</include>
23+
</source>
24+
</phpunit>

0 commit comments

Comments
 (0)