language: php

php:
  - 5.3
  - 5.4

before_install:
 - wget http://cs.sensiolabs.org/get/php-cs-fixer.phar

before_script:
 - composer self-update
 - composer install
 
script:
 - (cd test; phpunit -c phpunit.xml.dist)
 - output=$(php php-cs-fixer.phar fix --verbose --dry-run --diff --level=psr2 .); if [[ $output ]]; then while read -r line; do echo -e "\e[00;31m$line\e[00m"; done <<< "$output"; false; fi;

language: php

php:
 - '7.0'

before_install:
 - wget http://cs.sensiolabs.org/get/php-cs-fixer.phar

before_script:
 - composer self-update
 - composer install

script:
 - (cd test; phpunit -c phpunit.xml.dist)
 - output=$(php php-cs-fixer.phar fix --verbose --dry-run --diff --level=psr2 .); if [[ $output ]]; then while read -r line; do echo -e "\e[00;31m$line\e[00m"; done <<< "$output"; false; fi;

Update Travis to test against PHP 7
Update Travis to test against PHP 7
