Skip to content

Commit

Permalink
Merge pull request #80 from EmTeedee/travis-php7-fix
Browse files Browse the repository at this point in the history
fix travis build for php7
  • Loading branch information
dersam authored Sep 3, 2018
2 parents 672c430 + ec3b37b commit affe1a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@
* @since 2016-02-01
*/

// PHPUnit 6 introduced a breaking change that
// removed PHPUnit_Framework_TestCase as a base class,
// and replaced it with \PHPUnit\Framework\TestCase
if (!class_exists('\PHPUnit_Framework_TestCase') && class_exists('\PHPUnit\Framework\TestCase')) {
class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
}

include 'RequestTracker.php';

0 comments on commit affe1a6

Please sign in to comment.