File tree 5 files changed +18
-38
lines changed
5 files changed +18
-38
lines changed Original file line number Diff line number Diff line change 9
9
10
10
strategy :
11
11
matrix :
12
- php : ['8.1 ', '8.2 ']
13
- laravel : ['9.*', ' 10.*', ' 11.*' ]
12
+ php : ['8.3 ', '8.4 ']
13
+ laravel : [10.*, 11.*]
14
14
dependency-version : [prefer-stable]
15
15
include :
16
+ - laravel : 11.*
17
+ - testbench : 9.*
16
18
- laravel : 10.*
17
19
testbench : 8.*
18
- - laravel : 9.*
19
- testbench : 7.*
20
- - laravel : 11.*
21
- testbench : 9.*
22
- exclude :
23
- - laravel : 11.*
24
- php : ' 8.1'
25
-
26
20
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
27
21
28
22
steps :
38
32
- name : Install dependencies
39
33
run : |
40
34
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
41
- composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
35
+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
42
36
env :
43
37
APP_ENV : testing
44
38
51
45
name : Push coverage to codecov
52
46
with :
53
47
token : ${{ secrets.CODECOV_TOKEN }}
54
- file : ./clover .xml
48
+ file : ./coverage .xml
55
49
flags : unittests
56
50
name : codecov-umbrella
57
- fail_ci_if_error : true
51
+ fail_ci_if_error : false
Original file line number Diff line number Diff line change 18
18
"source" : " https://github.com/codedge/laravel-fpdf"
19
19
},
20
20
"require" : {
21
- "php" : " ^8.1 " ,
22
- "illuminate/support" : " ^9.0 || ^ 10.0 || ^11.0"
21
+ "php" : " ~8.3 || ~8.4 " ,
22
+ "illuminate/support" : " ^10.0 || ^11.0"
23
23
},
24
24
"require-dev" : {
25
25
"ergebnis/composer-normalize" : " ^2.39" ,
26
- "orchestra/testbench" : " ^7.35.0 || ^ 8.0 || ^9.0" ,
27
- "phpunit/phpunit" : " ^9.6.0 || ^ 10.5"
26
+ "orchestra/testbench" : " ^8.0 || ^9.0" ,
27
+ "phpunit/phpunit" : " ^10.5"
28
28
},
29
29
"minimum-stability" : " dev" ,
30
30
"prefer-stable" : true ,
55
55
}
56
56
},
57
57
"scripts" : {
58
- "test" : " phpunit"
58
+ "test" : " phpunit --coverage-clover coverage.xml "
59
59
}
60
60
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phpunit bootstrap =" vendor/autoload.php"
3
3
backupGlobals =" false"
4
- backupStaticAttributes =" false"
5
4
colors =" true"
6
- verbose =" true"
7
- convertErrorsToExceptions =" true"
8
- convertNoticesToExceptions =" true"
9
- convertWarningsToExceptions =" true"
10
5
processIsolation =" false"
11
6
stopOnFailure =" false" >
12
7
16
11
</testsuite >
17
12
</testsuites >
18
13
19
- <filter >
20
- <whitelist >
21
- <directory suffix =" .php" >src/Facades</directory >
22
- <directory suffix =" .php" >src/Fpdf</directory >
23
- </whitelist >
24
- </filter >
25
-
26
- <logging >
27
- <log type =" coverage-clover" target =" clover.xml" />
28
- </logging >
14
+ <source >
15
+ <include >
16
+ <directory >./src</directory >
17
+ </include >
18
+ </source >
29
19
</phpunit >
Original file line number Diff line number Diff line change 8
8
9
9
class FpdfTest extends TestCase
10
10
{
11
- protected $ fpdf ;
11
+ protected Fpdf $ fpdf ;
12
12
13
13
public function setUp (): void
14
14
{
Original file line number Diff line number Diff line change 9
9
10
10
abstract class TestCase extends Orchestra
11
11
{
12
- /**
13
- * @param \Illuminate\Foundation\Application $app
14
- * @return array|string[]
15
- */
16
12
protected function getPackageProviders ($ app )
17
13
{
18
14
return [
You can’t perform that action at this time.
0 commit comments