Skip to content

Commit

Permalink
Move phpunit.xml into root to make PHPUnit easier to run
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
tobyzerner committed Jun 4, 2016
1 parent 58d7be9 commit 6db27df
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -17,7 +17,7 @@ before_script:
- composer install

script:
- vendor/bin/phpunit -c tests/phpunit.xml --coverage-clover=coverage.xml
- vendor/bin/phpunit --coverage-clover=coverage.xml

notifications:
email:
Expand Down
3 changes: 0 additions & 3 deletions composer.json
Expand Up @@ -72,9 +72,6 @@
"Tests\\": "tests/"
}
},
"scripts": {
"test": "vendor/bin/phpunit -c tests/phpunit.xml"
},
"extra": {
"branch-alias": {
"dev-master": "0.1.x-dev"
Expand Down
7 changes: 1 addition & 6 deletions tests/phpunit.xml → phpunit.xml
Expand Up @@ -12,13 +12,8 @@

<testsuites>
<testsuite name="all">
<directory suffix="Test.php">./</directory>
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>

<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
</php>

</phpunit>

0 comments on commit 6db27df

Please sign in to comment.