From 1d4d6f87f17af03c6ea5b817626d84b91b802206 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Thu, 19 Mar 2015 17:10:26 +0100 Subject: [PATCH] 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 --- .gitignore | 1 + composer.json | 2 +- phpunit.xml => phpunit.xml.dist | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) rename phpunit.xml => phpunit.xml.dist (77%) diff --git a/.gitignore b/.gitignore index 30d33d1..2ef75c1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules vendor composer.lock composer.phar +/phpunit.xml diff --git a/composer.json b/composer.json index 4f6fca3..dc36127 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "psr-4": {"Ovh\\": "src/"} }, "require-dev": { - "phpunit/phpunit": "4.0.*", + "phpunit/phpunit": "4.*", "phpdocumentor/phpdocumentor": "2.*", "squizlabs/php_codesniffer": "1.*" } diff --git a/phpunit.xml b/phpunit.xml.dist similarity index 77% rename from phpunit.xml rename to phpunit.xml.dist index db2b761..aa6b117 100644 --- a/phpunit.xml +++ b/phpunit.xml.dist @@ -10,5 +10,10 @@ - + + + + src + +