File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,16 @@ before_script:
55
55
- |
56
56
case "$TRAVIS_PHP_VERSION" in
57
57
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"
59
61
;;
60
62
5.2)
61
- ;;
63
+ ;;
62
64
*)
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"
64
68
;;
65
69
esac
66
70
- |
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function _manually_load_plugin() {
31
31
}
32
32
33
33
// 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 ( ' /tmp/wordpress-tests-lib/ includes/phpunit6/ compat.php ' ) ) {
35
35
// WordPress versions before 4.8 will be incompatible with newer PHPUnit versions.
36
36
if ( version_compare ( getenv ( 'WP_VERSION ' ), '4.8 ' , '< ' ) && class_exists ( 'PHPUnit\Runner\Version ' ) ) {
37
37
require_once dirname ( __FILE__ ) . '/phpunit6-compat.php ' ;
You can’t perform that action at this time.
0 commit comments