Skip to content

Commit 2da6904

Browse files
committed
Useless tests were not reported for before PHPUnit 6, so it doesn't understand the CLI argument
1 parent 9f6385e commit 2da6904

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,14 @@ jobs:
9191
- name: 'PHPUnit: remove config file'
9292
run: rm phpunit.xml.dist
9393

94+
# Useless tests were not reported for before PHPUnit 6, so it doesn't
95+
# understand the CLI argument.
9496
- name: 'PHPUnit: run the tests'
97+
if: ${{ matrix.php < 7.0 }}
98+
run: vendor/bin/phpunit tests/AllTests.php --bootstrap=tests/bootstrap.php
99+
100+
- name: 'PHPUnit: run the tests, dont report useless'
101+
if: ${{ matrix.php >= 7.0 }}
95102
run: vendor/bin/phpunit tests/AllTests.php --bootstrap=tests/bootstrap.php --dont-report-useless-tests
96103

97104
- name: 'PHPCS: check code style without cache, no parallel'

0 commit comments

Comments
 (0)