Skip to content

Commit 2236c04

Browse files
authored
Merge pull request #6 from wp-phpunit/add-polyfills
2 parents 752d32b + 772801e commit 2236c04

File tree

4 files changed

+11
-31
lines changed

4 files changed

+11
-31
lines changed

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
branches:
2+
only:
3+
- master
4+
15
language: php
26

37
services:
@@ -27,8 +31,11 @@ before_script:
2731
install:
2832
- composer validate --strict
2933
- composer require --no-update --dev roots/wordpress:${WP_VERSION} wp-phpunit/wp-phpunit:${WP_VERSION}
30-
- composer install
31-
- "[ $TRAVIS_PHP_VERSION != '8.0' ] || composer update phpunit/phpunit --ignore-platform-reqs --with-dependencies"
34+
- "[ $TRAVIS_PHP_VERSION == '8.0' ] || composer install"
35+
# Temporary hack to allow installing PHPUnit 7 with PHP 8 until WP 5.9.
36+
# as WP PHPUnit does not allow PHPUnit higher than 7 yet.
37+
# See https://github.com/WordPress/wordpress-develop/commit/8def694fe4c5df95f8e20e40389faf9cb92b6dca
38+
- "[ $TRAVIS_PHP_VERSION != '8.0' ] || composer install --ignore-platform-reqs"
3239
- composer show
3340

3441
script:

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"require-dev": {
2121
"phpunit/phpunit": "^5 || ^6 || ^7",
2222
"roots/wordpress": "^5.0",
23-
"wp-phpunit/wp-phpunit": "^5.0"
23+
"wp-phpunit/wp-phpunit": "^5.0",
24+
"yoast/phpunit-polyfills": "^1.0"
2425
},
2526
"scripts": {
2627
"test": "phpunit"

vendor/autoload.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

vendor/composer/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)