Skip to content

Commit 85a61b8

Browse files
committed
Php Unit config added
1 parent 3e27ec4 commit 85a61b8

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ build
22
composer.lock
33
vendor
44
phpcs.xml
5-
phpunit.xml
65
.phpunit.result.cache

phpunit.xml

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 bootstrap="vendor/autoload.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
verbose="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false">
12+
<testsuites>
13+
<testsuite name="contentstack Test Suite">
14+
<directory>tests</directory>
15+
</testsuite>
16+
</testsuites>
17+
<filter>
18+
<whitelist>
19+
<directory suffix=".php">src/</directory>
20+
</whitelist>
21+
</filter>
22+
<logging>
23+
<log type="junit" target="build/junit/report.xml"/>
24+
<log type="coverage-html" target="build/coverage/report"/>
25+
<log type="coverage-text" target="build/coverage/coverage.txt"/>
26+
<log type="coverage-clover" target="build/logs/clover.xml"/>
27+
<log type="testdox-html" target="build/tests/test.html"/>
28+
<log type="testdox-text" target="build/tests/test.txt"/>
29+
</logging>
30+
</phpunit>

0 commit comments

Comments
 (0)