Skip to content

Commit 0c3b4bd

Browse files
committed
Tweaks versions and configure PHPUnit
1 parent dc810a4 commit 0c3b4bd

File tree

5 files changed

+31
-40
lines changed

5 files changed

+31
-40
lines changed

Diff for: .github/workflows/run-tests.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ jobs:
1010
matrix:
1111
os: [ubuntu-latest, macos-latest]
1212
php: [8.2]
13-
laravel: [10.*]
13+
laravel: [10.*, 11.*]
1414
stability: [prefer-lowest, prefer-stable]
1515
include:
1616
- laravel: 10.*
1717
testbench: 8.*
18+
- laravel: 11.*
19+
testbench: 9.*
1820

1921
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2022

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.php_cs.cache
44
.php-cs-fixer.cache
55
.phpunit.result.cache
6+
.phpunit.cache
67
build
78
composer.lock
89
coverage

Diff for: composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
],
2020
"require": {
2121
"php": "^8.2",
22-
"illuminate/support": "^10.0"
22+
"illuminate/support": "^10.0|^11.0"
2323
},
2424
"require-dev": {
2525
"laravel/pint": "^1.10",
26-
"orchestra/testbench": "^8.14",
27-
"orchestra/workbench": "^1.0",
28-
"phpunit/phpunit": "^9.6"
26+
"orchestra/testbench": "^8.14|^9.0",
27+
"orchestra/workbench": "^1.0|^8.3",
28+
"phpunit/phpunit": "^10.5"
2929
},
3030
"autoload": {
3131
"psr-4": {

Diff for: phpunit.xml.dist

+17-22
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,29 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false"
11-
verbose="true"
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
backupGlobals="false"
5+
bootstrap="vendor/autoload.php"
6+
colors="true"
7+
processIsolation="false"
8+
stopOnFailure="false"
9+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
10+
cacheDirectory=".phpunit.cache"
11+
backupStaticProperties="false"
1212
>
1313
<testsuites>
1414
<testsuite name="Turbo Laravel Test Suite">
1515
<directory>tests</directory>
1616
</testsuite>
1717
</testsuites>
18-
<coverage>
19-
<include>
20-
<directory suffix=".php">./src</directory>
21-
</include>
22-
<report>
23-
<html outputDirectory="build/coverage"/>
24-
<text outputFile="build/coverage.txt"/>
25-
<clover outputFile="build/logs/clover.xml"/>
26-
</report>
27-
</coverage>
2818
<logging>
29-
<junit outputFile="build/report.junit.xml"/>
19+
<junit outputFile="build/report.junit.xml" />
3020
</logging>
3121
<php>
32-
<env name="APP_KEY" value="a2ps3dFoNmyehsm7r0VFZ0Iq64hwBpqI"/>
22+
<env name="APP_KEY" value="a2ps3dFoNmyehsm7r0VFZ0Iq64hwBpqI" />
3323
</php>
24+
<source>
25+
<include>
26+
<directory suffix=".php">./src</directory>
27+
</include>
28+
</source>
3429
</phpunit>

Diff for: tests/TurboStreamsBroadcastingTest.php

+6-13
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,15 @@ protected function setUp(): void
2626
TurboStream::fake();
2727
}
2828

29-
public function turboStreamDefaultInsertActions()
30-
{
31-
return [
32-
['append'],
33-
['prepend'],
34-
['before'],
35-
['after'],
36-
['update'],
37-
['replace'],
38-
];
39-
}
40-
4129
/**
4230
* @test
4331
*
44-
* @dataProvider turboStreamDefaultInsertActions
32+
* @testWith ["append"]
33+
* ["prepend"]
34+
* ["before"]
35+
* ["after"]
36+
* ["update"]
37+
* ["replace"]
4538
*/
4639
public function can_manually_broadcast_append_streams(string $action)
4740
{

0 commit comments

Comments
 (0)