File tree 5 files changed +27
-26
lines changed
5 files changed +27
-26
lines changed Original file line number Diff line number Diff line change 13
13
strategy :
14
14
matrix :
15
15
php : ['8.0', '8.1', '8.2']
16
- phpunit : ['8.0', '9.0']
17
- composer-arg : ['']
16
+ phpunit : ['8.0', '9.0', '10.0']
17
+ exclude :
18
+ - php : ' 8.0'
19
+ phpunit : ' 10.0'
18
20
runs-on : ubuntu-latest
19
21
name : PHP ${{ matrix.php }}, PHPUnit ${{ matrix.phpunit }}
20
22
@@ -37,10 +39,10 @@ jobs:
37
39
composer require --no-update --dev phpunit/phpunit ~${{ matrix.phpunit }}
38
40
39
41
- name : Install dependencies
40
- run : composer install --prefer-dist --no-progress --no-suggest --${{ matrix.composer-arg }}
42
+ run : composer install --prefer-dist --no-progress --no-suggest
41
43
42
44
# - name: Run type checker
43
45
# run: ./vendor/bin/psalm
44
46
45
47
- name : Run unit tests
46
- run : ./vendor/bin/phpunit --testdox
48
+ run : ./vendor/bin/phpunit --testdox --no-coverage
Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ This library is [MIT-licensed](LICENSE.txt).
23
23
24
24
There are several release branches of this library, each of these being compatible with different releases of PHPUnit and PHP. The following table should give an easy overview:
25
25
26
- | "JSON assertion" version | PHPUnit 4 | PHPUnit 5 | PHPUnit 6 | PHPUnit 7 | PHPUnit 8 | PHPUnit 9 |
27
- | ------------------------ | --------- | --------- | --------- | --------- | --------- | --------- |
28
- | v1 (branch ` v1 ` ), ** unsupported** | :white_check_mark : | :white_check_mark : | :no_entry_sign : | :no_entry_sign : | :no_entry_sign : | :no_entry_sign : |
29
- | v2 (branch ` v2 ` ) | :no_entry_sign : | :no_entry_sign : | :white_check_mark : | :white_check_mark : | :no_entry_sign : | :no_entry_sign : |
30
- | v3 (branch ` master ` ) | :no_entry_sign : | :no_entry_sign : | :no_entry_sign : | :no_entry_sign : | :white_check_mark : | :white_check_mark : |
26
+ | "JSON assertion" version | PHPUnit 4 | PHPUnit 5 | PHPUnit 6 | PHPUnit 7 | PHPUnit 8 | PHPUnit 9 | PHPUnit 10 |
27
+ | ------------------------ | --------- | --------- | --------- | --------- | --------- | --------- | ---------- |
28
+ | v1 (branch ` v1 ` ), ** unsupported** | :white_check_mark : | :white_check_mark : | :no_entry_sign : | :no_entry_sign : | :no_entry_sign : | :no_entry_sign : | : no_entry_sign : |
29
+ | v2 (branch ` v2 ` ) | :no_entry_sign : | :no_entry_sign : | :white_check_mark : | :white_check_mark : | :no_entry_sign : | :no_entry_sign : | : no_entry_sign : |
30
+ | v3 (branch ` master ` ) | :no_entry_sign : | :no_entry_sign : | :no_entry_sign : | :no_entry_sign : | :white_check_mark : | :white_check_mark : | : white_check_mark : |
31
31
32
32
When you are using ` composer require ` and have already declared a dependency to ` phpunit/phpunit ` in your ` composer.json ` file, Composer should pick latest compatible version automatically.
33
33
Original file line number Diff line number Diff line change 14
14
"justinrainbow/json-schema" : " ^5.0"
15
15
},
16
16
"conflict" : {
17
- "phpunit/phpunit" : " <8.0 || >= 10 .0"
17
+ "phpunit/phpunit" : " <8.0 || >= 11 .0"
18
18
},
19
19
"require-dev" : {
20
- "phpunit/phpunit" : " ^8.0 || ^9.0"
20
+ "phpunit/phpunit" : " ^8.0 || ^9.0 || ^10.0 "
21
21
},
22
22
"autoload" : {
23
23
"psr-4" : {
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
1
2
<phpunit
2
3
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
- xsi : noNamespaceSchemaLocation =" http ://schema.phpunit.de/5.1 /phpunit.xsd"
4
+ xsi : noNamespaceSchemaLocation =" https ://schema.phpunit.de/10.0 /phpunit.xsd"
4
5
bootstrap =" vendor/autoload.php"
5
6
colors =" true"
6
- convertErrorsToExceptions =" true"
7
- convertNoticesToExceptions =" true"
8
- convertWarningsToExceptions =" true"
9
- convertDeprecationsToExceptions =" true"
10
7
timeoutForSmallTests =" 1"
11
8
timeoutForMediumTests =" 10"
12
- timeoutForLargeTests =" 60" >
9
+ timeoutForLargeTests =" 60"
10
+ cacheDirectory =" .phpunit.cache" >
13
11
<testsuites >
14
12
<testsuite name =" functional" >
15
13
<directory >tests/Functional</directory >
16
14
</testsuite >
17
15
</testsuites >
18
16
<logging >
19
- <log type =" coverage-html" target =" build/coverage" lowUpperBound =" 35"
20
- highLowerBound =" 70" />
21
- <log type =" junit" target =" build/phpunit" />
17
+ <junit outputFile =" build/phpunit" />
22
18
</logging >
23
- <filter >
24
- <whitelist processUncoveredFilesFromWhitelist = " true " >
19
+ <coverage >
20
+ <include >
25
21
<directory suffix =" .php" >src</directory >
26
- </whitelist >
27
- </filter >
22
+ </include >
23
+ <report >
24
+ <html outputDirectory =" build/coverage" lowUpperBound =" 35" highLowerBound =" 70" />
25
+ </report >
26
+ </coverage >
28
27
</phpunit >
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class JsonValueMatchesTest extends TestCase
33
33
],
34
34
];
35
35
36
- public function dataForJsonValueEquals ()
36
+ public static function dataForJsonValueEquals ()
37
37
{
38
38
$ json = static ::$ exampleDocument ;
39
39
@@ -58,7 +58,7 @@ public function dataForJsonValueEquals()
58
58
];
59
59
}
60
60
61
- public function dataForJsonValueEqualsCanFail ()
61
+ public static function dataForJsonValueEqualsCanFail ()
62
62
{
63
63
$ json = static ::$ exampleDocument ;
64
64
You can’t perform that action at this time.
0 commit comments