Skip to content

Commit 958cfff

Browse files
committed
Fix xmllint error on phpunit.legacy.xml
Copies the legacy config rather than moving it so that xmllint can scan it, which was the last thing preventing the 7.x build from passing. Since the config is always available under the same filename, we also no longer need to pass a custom `--configuration` flag for phpunit.
1 parent 8dd0ae5 commit 958cfff

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.travis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ install:
2727
# Where PHPUnit v8 is used, we need to replace the config.
2828
- if [[ ${TRAVIS_PHP_VERSION:0:1} == "7" ]]
2929
&& [ ${TRAVIS_PHP_VERSION:2:1} -lt 4 ]; then
30-
mv -v tests/phpunit.legacy.xml tests/phpunit.xml
30+
cp -v tests/phpunit.legacy.xml tests/phpunit.xml
3131
; fi
3232

3333
# PHPUnit 9 supports 7.3, but Infection PHP 18 can't read
@@ -38,11 +38,7 @@ install:
3838

3939
script:
4040
- vendor/bin/grumphp run
41-
42-
- if [[ -z "$PHPUNIT_LEGACY" ]]; then composer test; else
43-
vendor/bin/phpunit --testdox --color=always
44-
--configuration tests/phpunit.legacy.xml
45-
; fi
41+
- composer test
4642

4743
- if [[ -z "$PHPUNIT_LEGACY" ]]; then composer infection; else
4844
vendor/bin/infection --ansi --threads=4 --coverage=tests/test-results

0 commit comments

Comments
 (0)