refactor thrown exceptions to be more specific than just Exception class

pull/2/head
toimtoimtoim 8 years ago
parent f51e71cffd
commit d91e37a290
  1. 25
      .travis.yml
  2. 5
      composer.json
  3. 11
      phpunit.xml

@ -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

@ -32,5 +32,10 @@
"psr-4": { "psr-4": {
"Tests\\": "tests/" "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"
} }
} }

@ -15,17 +15,6 @@
<directory suffix="Test.php">./tests/*</directory> <directory suffix="Test.php">./tests/*</directory>
</testsuite> </testsuite>
<logging>
<log type="coverage-html"
target="report/coverage"
charset="UTF-8"
yui="true"
highlight="true"
lowUpperBound="35"
highLowerBound="70"/>
<log type="junit" target="report/junit.xml" logIncompleteSkipped="false"/>
</logging>
<filter> <filter>
<whitelist processUncoveredFilesFromWhitelist="true"> <whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory> <directory suffix=".php">src</directory>

Loading…
Cancel
Save