File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,16 @@ before_script:
5555 - |
5656 case "$TRAVIS_PHP_VERSION" in
5757 5.6|5.5|5.4|5.3)
58- composer global require "phpunit/phpunit:^4"
58+ composer global require consolidation/cgr
59+ PATH="$(composer config -g home)/vendor/bin:$PATH"
60+ cgr "phpunit/phpunit:^4"
5961 ;;
6062 5.2)
6163 ;;
6264 *)
63- composer global require "phpunit/phpunit:6"
65+ composer global require consolidation/cgr
66+ PATH="$(composer config -g home)/vendor/bin:$PATH"
67+ cgr "phpunit/phpunit:^6"
6468 ;;
6569 esac
6670 - |
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function _manually_load_plugin() {
3131}
3232
3333// Core started including their own phpunit6-compat, so we should use that if we can.
34- if ( ! file_exists ( $ test_root . '/includes/phpunit6- compat.php ' ) ) {
34+ if ( ! file_exists ( $ test_root . '/includes/phpunit6/ compat.php ' ) ) {
3535 // WordPress versions before 4.8 will be incompatible with newer PHPUnit versions.
3636 if ( version_compare ( getenv ( 'WP_VERSION ' ), '4.8 ' , '< ' ) && class_exists ( 'PHPUnit\Runner\Version ' ) ) {
3737 require_once dirname ( __FILE__ ) . '/phpunit6-compat.php ' ;
You can’t perform that action at this time.
0 commit comments