diff --git a/.travis.yml b/.travis.yml index 3e9aa3b7..d90fd16b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,18 +5,16 @@ language: php php: # using major version aliases - # aliased to 5.2.17 - - 5.2 - # aliased to 5.3.29 - - 5.3 - # aliased to a recent 5.4.x version - - 5.4 - # aliased to a recent 5.5.x version - - 5.5 # aliased to a recent 5.6.x version - 5.6 - # aliased to a recent 7.x version + # aliased to a recent 7.0.x version - 7.0 + # aliased to a recent 7.1.x version + - 7.1 + # aliased to a recent 7.2.x version + #- 7.2 + # aliased to a recent nightly build + #- nightly # aliased to a recent hhvm version - hhvm @@ -31,7 +29,7 @@ matrix: - php: hhvm env: DB=pgsql # PDO driver for pgsql is unsupported by HHVM (3rd party install for support) allow_failures: - - php: 7.0 + - php: 7.1 - php: hhvm # execute any number of scripts before the test run, custom env's are available as variables diff --git a/README.md b/README.md index a3515555..e52aaf0d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ continuous integration with a PHP project. Here is a sample status icon showing the state of the master branch. -[![Build Status](https://travis-ci.org/travis-ci-examples/php.svg?branch=master)](https://travis-ci.org/travis-ci-examples/php) +[![Build Status](https://travis-ci.org/travis-ci-examples/php-example.svg?branch=master)](https://travis-ci.org/travis-ci-examples/php-example) In order to run this project just fork it on github.com and then [enable](http://about.travis-ci.org/docs/user/getting-started/) your fork on your [travis-ci profile](http://travis-ci.org/profile). Every push will then trigger a new build on Travis CI. diff --git a/Tests/HelloWorldTest.php b/Tests/HelloWorldTest.php index eaab7996..c5cb370d 100644 --- a/Tests/HelloWorldTest.php +++ b/Tests/HelloWorldTest.php @@ -1,6 +1,6 @@ assertEquals('Bar', $helloWorld->what()); } } - diff --git a/Tests/bootstrap.php b/Tests/bootstrap.php index d1fe4e2b..c2de5fb5 100644 --- a/Tests/bootstrap.php +++ b/Tests/bootstrap.php @@ -2,6 +2,12 @@ function loader($class) { + // Support for pre-PHP 5.6 versions + if ($class === 'PHPUnit\Framework\TestCase') { + class_alias('PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase'); + + return; + } $file = $class . '.php'; if (file_exists($file)) { require $file;