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:
parent
ec7afae21c
commit
1d4d6f87f1
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ node_modules
|
|||||||
vendor
|
vendor
|
||||||
composer.lock
|
composer.lock
|
||||||
composer.phar
|
composer.phar
|
||||||
|
/phpunit.xml
|
||||||
|
@ -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.*"
|
||||||
}
|
}
|
||||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user