Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit 4b5f875

Browse files
committed
Setup tests
1 parent f55e18a commit 4b5f875

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
composer.phar
22
/vendor/
3-
4-
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
5-
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
6-
# composer.lock
3+
.phpunit.result.cache

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"phpcs": "./vendor/bin/phpcs --standard=PSR12 src tests",
3232
"phpcs:fix": "./vendor/bin/phpcbf --standard=PSR12 src tests",
3333
"phpstan": "./vendor/bin/phpstan analyse src -c phpstan.neon",
34+
"tests": "./vendor/bin/phpunit tests",
3435
"docker:shell": "docker run --rm --interactive --tty --volume $PWD:/app composer /bin/sh"
3536
}
3637
}

phpunit.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
backupGlobals="false"
5+
backupStaticAttributes="false"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false"
12+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
13+
failOnWarning="true"
14+
>
15+
<coverage>
16+
<include>
17+
<directory suffix=".php">src/</directory>
18+
</include>
19+
</coverage>
20+
</phpunit>

0 commit comments

Comments
 (0)