File tree 5 files changed +11
-14
lines changed
5 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 49
49
run : composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
50
50
51
51
- name : Execute tests
52
- run : vendor/bin/phpunit --verbose -- coverage-clover coverage.xml
52
+ run : vendor/bin/phpunit --coverage-clover coverage.xml
53
53
env :
54
54
DB_PORT : ${{ job.services.mysql.ports[3306] }}
55
55
DB_USERNAME : root
Original file line number Diff line number Diff line change 1
1
/composer.lock
2
2
/vendor /
3
+ /.phpunit.cache /
3
4
/.phpunit.result.cache
Original file line number Diff line number Diff line change 31
31
},
32
32
"require-dev" : {
33
33
"orchestra/testbench" : " ^8.13" ,
34
- "phpunit/phpunit" : " ^9.6 "
34
+ "phpunit/phpunit" : " ^10.4 "
35
35
},
36
36
"autoload" : {
37
37
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd"
4
- bootstrap =" vendor/autoload.php"
5
- colors =" true"
6
- testdox =" true"
7
- >
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.4/phpunit.xsd" bootstrap =" vendor/autoload.php" colors =" true" testdox =" true" cacheDirectory =" .phpunit.cache" >
8
3
<testsuites >
9
4
<testsuite name =" Flarum Laravel Session Test Suite" >
10
5
<directory suffix =" Test.php" >./tests</directory >
11
6
</testsuite >
12
7
</testsuites >
13
- <coverage processUncoveredFiles =" true" >
14
- <include >
15
- <directory suffix =" .php" >./src</directory >
16
- </include >
17
- </coverage >
8
+ <coverage />
18
9
<php >
19
10
<env name =" DB_CONNECTION" value =" testing" />
20
11
</php >
12
+ <source >
13
+ <include >
14
+ <directory suffix =" .php" >./src</directory >
15
+ </include >
16
+ </source >
21
17
</phpunit >
Original file line number Diff line number Diff line change 12
12
use Illuminate \Support \Str ;
13
13
use Symfony \Component \HttpKernel \Exception \HttpException ;
14
14
15
- final class MiddlewareTest extends TestCase
15
+ final class FlarumMiddlewareTest extends TestCase
16
16
{
17
17
public function testExceptionIsThrownIfSessionCouldNotBeFound ()
18
18
{
You can’t perform that action at this time.
0 commit comments