language: php

php:
  - "5.3.3"
  - "5.3"
  - "5.4"

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

before_script:
 - composer self-update
 - composer install --dev

script:
 - (cd test; phpunit -c phpunit.xml.dist)
 - output=$(php php-cs-fixer.phar fix -v --dry-run --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:
  - "5.3.3"
  - "5.4"

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

before_script:
 - composer self-update
 - composer install --dev

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

Remove testing against PHP 5.3 as ZF2 requires 5.3.3
Remove testing against PHP 5.3 as ZF2 requires 5.3.3