File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,17 @@ before_script:
58
58
- composer self-update
59
59
# # Composer in PHP versions 5.x requires 3 GB memory
60
60
- if [ ${TRAVIS_PHP_VERSION:0:2} == "5." ]; then export COMPOSER_MEMORY_LIMIT=3G ; fi
61
+ # # PHP 8 require PHPUnit 8 (ugly hack for support PHPUnit 7 and 8 together)
62
+ - |
63
+ if [[ ${TRAVIS_PHP_VERSION:0:2} == "8." ]] || [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then
64
+ travis_wait composer remove phpunit/phpunit --dev --no-update --no-interaction
65
+ travis_wait composer require phpunit/phpunit ^8.0 --dev --no-update
66
+ fi
67
+ # # Install composer packages
61
68
- travis_wait composer install --prefer-source $(if [ -n "$DEPENDENCIES" ]; then echo $DEPENDENCIES; fi)
62
69
# # PHP 8 require PHPUnit 8 (ugly hack for support PHPUnit 7 and 8 together)
63
70
- |
64
71
if [[ ${TRAVIS_PHP_VERSION:0:2} == "8." ]] || [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then
65
- travis_wait composer remove phpunit/phpunit --dev --no-interaction --ignore-platform-reqs
66
- travis_wait composer require phpunit/phpunit ^8.0 --dev --ignore-platform-reqs
67
-
68
72
find ./tests/ -name "*.php" -type f -exec sed -i -e 's/function setUpBeforeClass()$/function setUpBeforeClass(): void/' {} \;
69
73
find ./tests/ -name "*.php" -type f -exec sed -i -e 's/function tearDownAfterClass()$/function tearDownAfterClass(): void/' {} \;
70
74
find ./tests/ -name "*.php" -type f -exec sed -i -e 's/function setUp()$/function setUp(): void/' {} \;
You can’t perform that action at this time.
0 commit comments