Move phpunit.xml into root to make PHPUnit easier to run

This seems to be pretty standard. Can just run `vendor/bin/phpunit` without any arguments. Removes the need for `composer test` (which is not ideal anyway as it removes colours from the output).
This commit is contained in:
Toby Zerner 2016-06-05 09:16:29 +09:30
parent 44d44ef0aa
commit d2dc0d05e5
3 changed files with 2 additions and 10 deletions

View File

@ -17,7 +17,7 @@ before_script:
- composer install - composer install
script: script:
- vendor/bin/phpunit -c tests/phpunit.xml --coverage-clover=coverage.xml - vendor/bin/phpunit --coverage-clover=coverage.xml
notifications: notifications:
email: email:

View File

@ -72,9 +72,6 @@
"Tests\\": "tests/" "Tests\\": "tests/"
} }
}, },
"scripts": {
"test": "vendor/bin/phpunit -c tests/phpunit.xml"
},
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "0.1.x-dev" "dev-master": "0.1.x-dev"

View File

@ -12,13 +12,8 @@
<testsuites> <testsuites>
<testsuite name="all"> <testsuite name="all">
<directory suffix="Test.php">./</directory> <directory suffix="Test.php">./tests</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
</php>
</phpunit> </phpunit>