Added PSR2 check

This commit is contained in:
Emanuele Minotto 2015-10-04 23:55:33 +02:00
parent 14654a0283
commit f81265193d
2 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,7 @@ before_script:
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
script:
- vendor/bin/phpcs --standard=psr2 src/
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
after_script:

View File

@ -20,7 +20,8 @@
},
"require-dev": {
"phpunit/phpunit" : "4.*",
"scrutinizer/ocular": "~1.1"
"scrutinizer/ocular": "~1.1",
"squizlabs/php_codesniffer": "~2.3"
},
"autoload": {
"psr-4": {