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 vendor
composer.lock composer.lock
composer.phar composer.phar
/phpunit.xml

View File

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

View File

@ -11,4 +11,9 @@
<env name="APP_SECRET" value=""/> <env name="APP_SECRET" value=""/>
<env name="CONSUMER" value=""/> <env name="CONSUMER" value=""/>
</php> </php>
<filter>
<whitelist>
<directory>src</directory>
</whitelist>
</filter>
</phpunit> </phpunit>