Skip to content

Commit 2d257d0

Browse files
authored
Migrate the testsuite to PHPUnit 11 (#1977)
1 parent c6dbcf0 commit 2d257d0

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ jobs:
2828
- name: Download dependencies
2929
run: |
3030
composer config minimum-stability dev
31-
composer req symfony/phpunit-bridge --no-update
3231
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
3332
3433
- name: Run tests
35-
run: ./vendor/bin/simple-phpunit
34+
run: ./vendor/bin/phpunit

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"illuminate/queue": "^6.18.11 || ^7.10 || ^8.0 || ^9.0 || ^10.0 || ^11.0",
1818
"illuminate/support": "^6.18.13 || ^7.10 || ^8.0 || ^9.0 || ^10.0 || ^11.0"
1919
},
20+
"require-dev": {
21+
"phpunit/phpunit": "^11.5.42",
22+
"symfony/error-handler": "^7.3.2 || ^8.0",
23+
"symfony/phpunit-bridge": "^7.3.2 || ^8.0"
24+
},
2025
"autoload": {
2126
"psr-4": {
2227
"AsyncAws\\Illuminate\\Queue\\": "src"

phpunit.xml.dist

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
44
backupGlobals="false"
55
colors="true"
66
bootstrap="vendor/autoload.php"
77
failOnRisky="true"
88
failOnWarning="true"
9+
failOnDeprecation="true"
10+
failOnNotice="true"
911
>
10-
<coverage>
12+
<source ignoreSuppressionOfDeprecations="true" ignoreIndirectDeprecations="true">
1113
<include>
1214
<directory>./src</directory>
1315
</include>
14-
</coverage>
16+
<deprecationTrigger>
17+
<function>trigger_deprecation</function>
18+
</deprecationTrigger>
19+
</source>
1520
<php>
1621
<ini name="error_reporting" value="-1"/>
1722
</php>
@@ -20,4 +25,7 @@
2025
<directory>./tests/</directory>
2126
</testsuite>
2227
</testsuites>
28+
<extensions>
29+
<bootstrap class="Symfony\Bridge\PhpUnit\SymfonyExtension"/>
30+
</extensions>
2331
</phpunit>

0 commit comments

Comments
 (0)