File tree 2 files changed +11
-19
lines changed
2 files changed +11
-19
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,16 @@ jobs:
37
37
extensions : mbstring
38
38
coverage : pcov
39
39
40
+ - name : Configure matchers
41
+ uses : mheap/phpunit-matcher-action@v1
42
+
40
43
- name : Install dependencies
41
44
run : |
42
45
composer require "symfony/http-foundation:${{ matrix.symfony }}" --no-interaction --no-update
43
46
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest --with-all-dependencies
44
47
45
48
- name : Execute Unit Tests
46
- run : composer test
49
+ run : vendor/bin/phpunit --teamcity
47
50
48
51
- name : Analyse with PHPStan
49
52
run : composer analyse
54
57
if : matrix.os == 'ubuntu-latest'
55
58
56
59
- name : Check Code Coverage
57
- run : php vendor/bin/phpunit --verbose --coverage-text
60
+ run : vendor/bin/phpunit --verbose --coverage-text
58
61
if : matrix.dependency-version == 'prefer-stable' && matrix.php == '8.1'
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
-
3
- <phpunit backupGlobals =" false"
4
- backupStaticAttributes =" false"
5
- colors =" true"
6
- convertErrorsToExceptions =" true"
7
- convertNoticesToExceptions =" true"
8
- convertWarningsToExceptions =" true"
9
- processIsolation =" false"
10
- stopOnFailure =" false"
11
- >
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" backupGlobals =" false" backupStaticAttributes =" false" colors =" true" convertErrorsToExceptions =" true" convertNoticesToExceptions =" true" convertWarningsToExceptions =" true" processIsolation =" false" stopOnFailure =" false" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
3
+ <coverage >
4
+ <include >
5
+ <directory suffix =" .php" >./src/</directory >
6
+ </include >
7
+ </coverage >
12
8
<testsuites >
13
9
<testsuite name =" Fruitcake Cors Test Suite" >
14
10
<directory >./tests</directory >
15
11
</testsuite >
16
12
</testsuites >
17
-
18
- <filter >
19
- <whitelist >
20
- <directory suffix =" .php" >./src/</directory >
21
- </whitelist >
22
- </filter >
23
-
24
13
</phpunit >
You can’t perform that action at this time.
0 commit comments