Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHickman committed Apr 8, 2019
1 parent e332c11 commit f706369
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
12 changes: 4 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,13 @@ before_script:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
case "$TRAVIS_PHP_VERSION" in
5.6|5.5|5.4|5.3|5.2)
composer global require consolidation/cgr
PATH="$(composer config -g home)/vendor/bin:$PATH"
cgr "phpunit/phpunit:^4"
5.6|5.5|5.4|5.3)
composer global require "phpunit/phpunit:^4"
;;
5.2)
;;
;;
*)
composer global require consolidation/cgr
PATH="$(composer config -g home)/vendor/bin:$PATH"
cgr "phpunit/phpunit:^6"
composer global require "phpunit/phpunit:6"
;;
esac
- |
Expand Down
6 changes: 3 additions & 3 deletions tests/phpunit/phpunit6-compat.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

if (class_exists( 'PHPUnit\Runner\Version' ) && version_compare( PHPUnit\Runner\Version::id(), '6.0', '>=' ) && ! class_exists( 'PHPUnit_Framework_TestCase' ) ) {
if ( class_exists( 'PHPUnit\Runner\Version' ) && version_compare( PHPUnit\Runner\Version::id(), '6.0', '>=' ) ) {

class_alias( 'PHPUnit\Framework\TestCase', 'PHPUnit_Framework_TestCase' );
class_alias( 'PHPUnit\Framework\Exception', 'PHPUnit_Framework_Exception' );
Expand All @@ -15,10 +15,10 @@ class_alias( 'PHPUnit\Framework\TestListener', 'PHPUnit_Framework_
class_alias( 'PHPUnit\Util\GlobalState', 'PHPUnit_Util_GlobalState' );
class_alias( 'PHPUnit\Util\Getopt', 'PHPUnit_Util_Getopt' );

class PHPUnit_Util_Test {
class PHPUnit_Util_Test extends PHPUnit\Util\Test {

public static function getTickets( $className, $methodName ) {
$annotations = PHPUnit\Util\Test::parseTestMethodAnnotations( $className, $methodName );
$annotations = self::parseTestMethodAnnotations( $className, $methodName );

$tickets = array();

Expand Down

0 comments on commit f706369

Please # to comment.