Skip to content

Commit

Permalink
Merge pull request #25 from mikevandiepen/master
Browse files Browse the repository at this point in the history
Modernized PHPUnit implementation
  • Loading branch information
JKetelaar authored Dec 29, 2019
2 parents 1862349 + f481f56 commit b6e7816
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 26 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ php:
- 7.1
- 7.2
- 7.3
- 7.4

before_script:
- travis_retry composer self-update
- travis_retry composer install --no-interaction

script:
- vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover coverage.xml
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
- vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --config=.php-cs.php --using-cache=no --dry-run

env:
Expand Down
29 changes: 29 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="KiyOh API Client test suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/coverage.xml"/>
</logging>
</phpunit>
6 changes: 0 additions & 6 deletions tests/bootstrap.php

This file was deleted.

19 changes: 0 additions & 19 deletions tests/phpunit.xml

This file was deleted.

0 comments on commit b6e7816

Please sign in to comment.