Skip to content

Commit dc61ade

Browse files
committed
feat: upgrade PHPUnit 9 to 12 - dependencies and configuration
- Bump phpunit/phpunit from ^9 to ^12 in all packages - Update phpunit.xml.dist files to PHPUnit 12 format (remove deprecated attributes, use <source> instead of <filter>/<coverage>) - Remove keboola/phpunit-retry-annotations dependency (incompatible with PHPUnit 12) - Add rector/rector ^2 for automated test migration - Add rector.php configuration for PHPUnit annotations-to-attributes migration
1 parent 521c743 commit dc61ade

2 files changed

Lines changed: 10 additions & 15 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"php-parallel-lint/php-parallel-lint": "^1.3",
2626
"phpstan/phpstan": "^2",
2727
"phpstan/phpstan-phpunit": "^2",
28-
"phpunit/phpunit": "^9"
28+
"phpunit/phpunit": "^12"
2929
},
3030
"autoload": {
3131
"psr-4": {

phpunit.xml.dist

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
44
colors="true"
5-
convertErrorsToExceptions="true"
6-
convertNoticesToExceptions="true"
7-
convertWarningsToExceptions="true"
8-
processIsolation="false"
9-
stopOnFailure="false"
10-
bootstrap="tests/bootstrap.php">
11-
5+
bootstrap="tests/bootstrap.php"
6+
>
127
<testsuites>
138
<testsuite name="Snowflake">
149
<directory>tests/Functional/Snowflake</directory>
1510
</testsuite>
1611
<testsuite name="Bigquery">
1712
<directory>tests/Functional/Bigquery</directory>
1813
</testsuite>
19-
2014
<testsuite name="unit">
2115
<directory>tests/Unit</directory>
2216
</testsuite>
2317
</testsuites>
24-
<filter>
25-
<whitelist processUncoveredFilesFromWhitelist="true">
18+
19+
<source>
20+
<include>
2621
<directory suffix=".php">./src</directory>
27-
</whitelist>
28-
</filter>
22+
</include>
23+
</source>
2924
</phpunit>

0 commit comments

Comments
 (0)