language: php

sudo: false

git:
  depth: 1

branches:
  only: 
    - master

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - 7.1

before_script:
    - composer --dev install

script: phpunit

language: php

sudo: false

git:
  depth: 1

branches:
  only: 
    - master

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - 7.1

before_install:
  - if php -r "exit( (int) !version_compare( '$TRAVIS_PHP_VERSION', '5.6', '>=' ) );"; then wget -O phpunit https://phar.phpunit.de/phpunit-5.7.phar && chmod +x phpunit && mkdir ~/bin && mv -v phpunit ~/bin; fi

before_script:
  - composer --dev install

script: phpunit

Fix PHPUnit version in PHP > 7.0
Fix PHPUnit version in PHP > 7.0

Travis switched to phpunit 6.x in php versions > 7.0

This broke the SDK tests due to BC breaks in phpunit 6.