Skip to content

Commit 64e2973

Browse files
authored
Explain Composer and PHPUnit exceptions
1 parent 0288c0e commit 64e2973

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,20 @@ jobs:
3434
- language: php
3535
php: 8.0
3636
install:
37+
# For PHP 8.0+, we need to ignore platform reqs as PHPUnit 7 is still used.
3738
- composer install --ignore-platform-reqs
3839
script:
3940
- vendor/bin/phpunit
4041
- language: php
4142
php: 8.1
4243
install:
44+
# For PHP 8.0+, we need to ignore platform reqs as PHPUnit 7 is still used.
4345
- composer install --ignore-platform-reqs
4446
script:
45-
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php tests/FixtureTests.php
47+
# For PHP 8.1+, we need to ignore the config file so that PHPUnit 7 doesn't try to read it and cause an error.
48+
# Instead, we pass all required settings as part of the phpunit command.
4649
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php tests/AllSniffs.php
50+
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php tests/FixtureTests.php
4751
- language: node_js
4852
node_js: 10
4953
install:

0 commit comments

Comments
 (0)