Skip to content

Commit e8af09d

Browse files
committed
add phpunit
1 parent f7c0b81 commit e8af09d

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
composer.lock
66
composer.phar
77
vendor
8+
# phpunit
9+
build

composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,8 @@
3131
"issues": "http://pear.php.net/bugs/search.php?cmd=display&package_name[]=Console_Getopt",
3232
"source": "https://github.com/pear/Console_Getopt"
3333
},
34-
"type": "library"
34+
"type": "library",
35+
"require": {
36+
"phpunit/phpunit": "<=8"
37+
}
3538
}

phpunit.xml.dist

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<phpunit bootstrap="vendor/autoload.php"
2+
cacheTokens="false"
3+
colors="true"
4+
convertErrorsToExceptions="true"
5+
convertNoticesToExceptions="true"
6+
convertWarningsToExceptions="true"
7+
stopOnError="false"
8+
stopOnFailure="false"
9+
stopOnIncomplete="false"
10+
stopOnSkipped="false">
11+
12+
<testsuites>
13+
<testsuite name="Test Suite">
14+
<directory suffix=".phpt">tests/</directory>
15+
</testsuite>
16+
</testsuites>
17+
18+
<filter>
19+
<whitelist>
20+
<directory suffix=".php">Console/</directory>
21+
</whitelist>
22+
</filter>
23+
24+
<logging>
25+
<log type="coverage-clover" target="build/logs/clover.xml"/>
26+
<log type="coverage-html" target="build/coverage/"/>
27+
</logging>
28+
29+
</phpunit>

0 commit comments

Comments
 (0)