Skip to content

Commit f3e87f2

Browse files
committed
add phpcs & phpunit config
1 parent fce9f38 commit f3e87f2

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

phpcs.xml.dist

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="PHP_CodeSniffer">
3+
<file>src/</file>
4+
<file>tests/</file>
5+
<file>examples/</file>
6+
7+
<exclude-pattern type="relative">vendor/*</exclude-pattern>
8+
9+
<arg value="nps"/>
10+
11+
<rule ref="PSR12"/>
12+
</ruleset>

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 backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="tests/bootstrap.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnError="false"
11+
stopOnFailure="false">
12+
13+
<testsuites>
14+
<testsuite name="Unit">
15+
<directory>./tests/Test/PrometheusPushGateway</directory>
16+
</testsuite>
17+
</testsuites>
18+
19+
<filter>
20+
<whitelist processUncoveredFilesFromWhitelist="true">
21+
<directory suffix=".php">./src/PrometheusPushGateway</directory>
22+
</whitelist>
23+
</filter>
24+
</phpunit>

0 commit comments

Comments
 (0)