From 6db27dff4f4cda5c077d703593dda56502153929 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sun, 5 Jun 2016 09:16:29 +0930 Subject: [PATCH] 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). --- .travis.yml | 2 +- composer.json | 3 --- tests/phpunit.xml => phpunit.xml | 7 +------ 3 files changed, 2 insertions(+), 10 deletions(-) rename tests/phpunit.xml => phpunit.xml (72%) diff --git a/.travis.yml b/.travis.yml index 54179d492..eaf4af6fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/composer.json b/composer.json index 5572cbbf7..d4eee657c 100644 --- a/composer.json +++ b/composer.json @@ -72,9 +72,6 @@ "Tests\\": "tests/" } }, - "scripts": { - "test": "vendor/bin/phpunit -c tests/phpunit.xml" - }, "extra": { "branch-alias": { "dev-master": "0.1.x-dev" diff --git a/tests/phpunit.xml b/phpunit.xml similarity index 72% rename from tests/phpunit.xml rename to phpunit.xml index 75d384807..c16f17554 100644 --- a/tests/phpunit.xml +++ b/phpunit.xml @@ -12,13 +12,8 @@ - ./ + ./tests - - - - -