Skip to content

Commit 1b0293c

Browse files
committed
Configure PhpUnit
1 parent 3c25ab7 commit 1b0293c

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

build/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

phpunit.xml.dist

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.4/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
failOnRisky="true"
7+
failOnWarning="true"
8+
beStrictAboutChangesToGlobalState="true"
9+
beStrictAboutOutputDuringTests="true"
10+
beStrictAboutResourceUsageDuringSmallTests="true"
11+
backupGlobals="true"
12+
verbose="true">
13+
<testsuites>
14+
<testsuite name="Defaults">
15+
<directory>tests</directory>
16+
</testsuite>
17+
</testsuites>
18+
19+
<filter>
20+
<whitelist processUncoveredFilesFromWhitelist="true">
21+
<directory suffix=".php">src</directory>
22+
</whitelist>
23+
</filter>
24+
25+
<php>
26+
<ini name="error_reporting" value="-1" />
27+
28+
<const name="PHPUNIT_TESTSUITE" value="true"/>
29+
</php>
30+
</phpunit>

0 commit comments

Comments
 (0)