[PHP] fix PHPUnit invocation, add basic phpunit.xml.dist (#3864)

* feature(phpunit) fix PHPUnit invocation, add basic phpunit.xml.dist

* fix(phpunit) add proper paths relative to phpunit.xml.dist
This commit is contained in:
Dalibor Karlović
2016-09-28 13:44:07 +02:00
committed by wing328
parent ec25bd793f
commit 10d3dea89e
9 changed files with 85 additions and 25 deletions

View File

@@ -7,4 +7,4 @@ php:
- 7.0
- hhvm
before_install: "composer install"
script: "phpunit lib/Tests"
script: "vendor/bin/phpunit"

View File

@@ -56,7 +56,7 @@ To run the unit tests:
```
composer install
./vendor/bin/phpunit lib/Tests
./vendor/bin/phpunit
```
## Getting Started

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
stopOnFailure="false">
<testsuites>
<testsuite>
<directory>{{apiTestPath}}</directory>
<directory>{{modelTestPath}}</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">{{apiSrcPath}}</directory>
<directory suffix=".php">{{modelSrcPath}}</directory>
</whitelist>
</filter>
</phpunit>