Skip to content

Commit 9b92e78

Browse files
committed
tests: script + xml configuration
1 parent e902ca1 commit 9b92e78

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ php:
88
install:
99
- composer install
1010
script:
11-
- phpunit --bootstrap vendor/autoload.php --coverage-clover clover.xml tests
11+
- tests/phpunit --coverage-clover clover.xml
1212
after_success:
1313
- travis_retry php vendor/bin/coveralls

tests/phpunit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
dir=`dirname $0`
3+
exec "${dir}"/../vendor/phpunit/phpunit/phpunit --configuration "${dir}"/phpunit.xml "$@"

tests/phpunit.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.4/phpunit.xsd"
3+
bootstrap="../vendor/autoload.php"
4+
colors="auto"
5+
beStrictAboutOutputDuringTests="true"
6+
beStrictAboutTestsThatDoNotTestAnything="true"
7+
verbose="true">
8+
9+
<testsuites>
10+
<testsuite name="tests">
11+
<directory>.</directory>
12+
</testsuite>
13+
</testsuites>
14+
15+
<filter>
16+
<whitelist addUncoveredFilesFromWhitelist="true">
17+
<directory>../src</directory>
18+
</whitelist>
19+
</filter>
20+
</phpunit>

0 commit comments

Comments
 (0)