1
0
mirror of https://github.com/ovh/php-ovh.git synced 2023-11-05 03:20:26 +01:00

Improve the PHPUnit setup

- allow maintained versions of PHPUnit 4 instead of the old 4.0 only
- add the code coverage configuration to cover only the library code and
  not all tests and vendors as well
- move the configuration to phpunit.xml.dist to follow PHPUnit best
  practices

Signed-off-by: Christophe Coevoet <stof@notk.org>
This commit is contained in:
Christophe Coevoet 2015-03-19 17:10:26 +01:00
parent ec7afae21c
commit 1d4d6f87f1
3 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ node_modules
vendor
composer.lock
composer.phar
/phpunit.xml

View File

@ -14,7 +14,7 @@
"psr-4": {"Ovh\\": "src/"}
},
"require-dev": {
"phpunit/phpunit": "4.0.*",
"phpunit/phpunit": "4.*",
"phpdocumentor/phpdocumentor": "2.*",
"squizlabs/php_codesniffer": "1.*"
}

View File

@ -10,5 +10,10 @@
<env name="APP_KEY" value=""/>
<env name="APP_SECRET" value=""/>
<env name="CONSUMER" value=""/>
</php>
</php>
<filter>
<whitelist>
<directory>src</directory>
</whitelist>
</filter>
</phpunit>