Changeset 40547
- Timestamp:
- 04/24/2017 12:37:19 AM (7 years ago)
- Location:
- branches/4.7
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
- Property svn:mergeinfo changed
/trunk merged: 40536,40538-40539,40546
- Property svn:mergeinfo changed
-
branches/4.7/.travis.yml
r40435 r40547 5 5 directories: 6 6 - node_modules 7 - vendor 8 - $HOME/.composer/cache 7 9 env: 8 10 global: … … 22 24 - php: 5.3 23 25 - php: 5.2 24 - php: hhvm25 sudo: required26 dist: trusty27 group: edge28 addons:29 apt:30 packages:31 - mysql-server-5.632 - mysql-client-core-5.633 - mysql-client-5.634 26 - php: nightly 35 27 allow_failures: 36 - php: hhvm37 28 - php: nightly 38 29 before_install: … … 53 44 before_script: 54 45 - | 55 # Remove Xdebug for a huge performance increase, but not from nightly or hhvm:46 # Remove Xdebug for a huge performance increase, but not from nightly: 56 47 stable='^[0-9\.]+$' 57 48 if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then … … 68 59 if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then 69 60 case "$TRAVIS_PHP_VERSION" in 70 7.1|7.0| hhvm|nightly)71 echo "Using PHPUnit 5.7"72 composer global require "phpunit/phpunit= 5.7.*"61 7.1|7.0|nightly) 62 echo "Using PHPUnit 6.1" 63 composer global require "phpunit/phpunit=6.1.*" 73 64 ;; 74 65 5.6|5.5|5.4|5.3) … … 95 86 - phpenv versions 96 87 - php --version 97 - | 98 # Debug PHP extensions, but not on HHVM because the command hangs indefinitely: 99 if [[ "$TRAVIS_PHP_VERSION" != 'hhvm' ]]; then 100 php -m 101 fi 88 - php -m 102 89 - npm --version 103 90 - node --version -
branches/4.7/tests/phpunit/includes/bootstrap.php
r40116 r40547 4 4 */ 5 5 6 /** 7 * Compatibility with PHPUnit 6+ 8 */ 9 if ( class_exists( 'PHPUnit\Runner\Version' ) ) { 10 require_once dirname( __FILE__ ) . '/phpunit6-compat.php'; 11 } 6 12 7 13 $config_file_path = dirname( dirname( __FILE__ ) ); -
branches/4.7/tests/phpunit/includes/testcase-ajax.php
r38168 r40547 201 201 $this->_last_response = $buffer; 202 202 } 203 204 /** 205 * PHPUnit 6+ compatibility shim. 206 * 207 * @param mixed $exception 208 * @param string $message 209 * @param int|string $code 210 */ 211 public function setExpectedException( $exception, $message = '', $code = null ) { 212 if ( is_callable( 'parent::setExpectedException' ) ) { 213 parent::setExpectedException( $exception, $message, $code ); 214 } else { 215 $this->expectException( $exception ); 216 if ( '' !== $message ) { 217 $this->expectExceptionMessage( $message ); 218 } 219 if ( null !== $code ) { 220 $this->expectExceptionCode( $code ); 221 } 222 } 223 } 203 224 }
Note: See TracChangeset
for help on using the changeset viewer.