Skip to content

Commit 577d50d

Browse files
committed
Update phpunit
1 parent 9902793 commit 577d50d

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
5050

5151
- name: Execute tests
52-
run: vendor/bin/phpunit --verbose --coverage-clover coverage.xml
52+
run: vendor/bin/phpunit --coverage-clover coverage.xml
5353
env:
5454
DB_PORT: ${{ job.services.mysql.ports[3306] }}
5555
DB_USERNAME: root

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/composer.lock
22
/vendor/
3+
/.phpunit.cache/
34
/.phpunit.result.cache

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"require-dev": {
3333
"orchestra/testbench": "^8.13",
34-
"phpunit/phpunit": "^9.6"
34+
"phpunit/phpunit": "^10.4"
3535
},
3636
"autoload": {
3737
"psr-4": {

phpunit.xml.dist

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
<?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">
83
<testsuites>
94
<testsuite name="Flarum Laravel Session Test Suite">
105
<directory suffix="Test.php">./tests</directory>
116
</testsuite>
127
</testsuites>
13-
<coverage processUncoveredFiles="true">
14-
<include>
15-
<directory suffix=".php">./src</directory>
16-
</include>
17-
</coverage>
8+
<coverage/>
189
<php>
1910
<env name="DB_CONNECTION" value="testing"/>
2011
</php>
12+
<source>
13+
<include>
14+
<directory suffix=".php">./src</directory>
15+
</include>
16+
</source>
2117
</phpunit>

tests/FlarumMiddlewareTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Illuminate\Support\Str;
1313
use Symfony\Component\HttpKernel\Exception\HttpException;
1414

15-
final class MiddlewareTest extends TestCase
15+
final class FlarumMiddlewareTest extends TestCase
1616
{
1717
public function testExceptionIsThrownIfSessionCouldNotBeFound()
1818
{

0 commit comments

Comments
 (0)