Skip to content

Commit 5de9929

Browse files
committed
PHPUnit 10 support
1 parent 42f97fb commit 5de9929

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

.github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
strategy:
2323
matrix:
24-
php: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
24+
php: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
2525
fail-fast: false
2626

2727
steps:
@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: Run tests
4646
run: |
47-
vendor/bin/phpunit -v --coverage-clover=coverage.clover
47+
vendor/bin/phpunit --coverage-clover=coverage.clover
4848
4949
- name: Upload Coverage to CodeCov
5050
uses: codecov/codecov-action@v2

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"require-dev": {
1818
"aik099/coding-standard": "dev-master",
19-
"yoast/phpunit-polyfills": "^1.0",
19+
"yoast/phpunit-polyfills": "^2.0",
2020
"phpspec/prophecy": "^1.10",
2121
"console-helpers/prophecy-phpunit": "^2.0@dev"
2222
},

composer.lock

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit.xml.dist

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<phpunit bootstrap="vendor/autoload.php"
33
colors="true"
44
strict="true"
5-
verbose="true">
5+
verbose="true"
6+
displayDetailsOnTestsThatTriggerDeprecations="true">
67

78
<testsuites>
89
<testsuite name="default">

tests/ConsoleKit/WorkingDirectoryTest.php

-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@
1212

1313

1414
use ConsoleHelpers\ConsoleKit\WorkingDirectory;
15-
use Yoast\PHPUnitPolyfills\Polyfills\ExpectException;
1615

1716
class WorkingDirectoryTest extends WorkingDirectoryAwareTestCase
1817
{
1918

20-
use ExpectException;
21-
2219
/**
2320
* @dataProvider incorrectSubFolderDataProvider
2421
*/

0 commit comments

Comments
 (0)