From d91e37a29064b0755d6fefa86794de9c6e840224 Mon Sep 17 00:00:00 2001 From: toimtoimtoim Date: Sun, 27 Nov 2016 15:49:41 +0200 Subject: [PATCH] refactor thrown exceptions to be more specific than just Exception class --- .travis.yml | 25 +++++++++++++++++++++++++ composer.json | 5 +++++ phpunit.xml | 11 ----------- 3 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b55c9b9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: php + +sudo: false + +cache: + directories: + - $HOME/.composer/cache + +php: + - 5.6 + - 7.0 + +branches: + only: + - /^dev-.*$/ + - phpunit-support + +before_install: + - travis_retry composer self-update + +install: + - travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction + +script: + - composer test-ci \ No newline at end of file diff --git a/composer.json b/composer.json index f643d4a..012daf7 100644 --- a/composer.json +++ b/composer.json @@ -32,5 +32,10 @@ "psr-4": { "Tests\\": "tests/" } + }, + "scripts": { + "test": "vendor/bin/phpunit", + "test-ci": "vendor/bin/phpunit --coverage-clover report/coverage.xml", + "test-coverage": "vendor/bin/phpunit --coverage-html report/html" } } diff --git a/phpunit.xml b/phpunit.xml index fb3d442..891c4ea 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -15,17 +15,6 @@ ./tests/* - - - - - src