diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 176ced7a..eb0d9d78 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Gather CI configuration id: matrix - uses: laminas/laminas-ci-matrix-action@1.26.0 + uses: laminas/laminas-ci-matrix-action@1.29.0 qa: name: QA Checks @@ -27,7 +27,7 @@ jobs: matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }} steps: - name: ${{ matrix.name }} - uses: laminas/laminas-continuous-integration-action@1.39.0 + uses: laminas/laminas-continuous-integration-action@1.40.1 env: "GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }} "INFECTION_DASHBOARD_API_KEY": ${{ secrets.INFECTION_DASHBOARD_API_KEY }} @@ -47,6 +47,7 @@ jobs: php-version: - "8.2" - "8.3" + - "8.4" operating-system: - "ubuntu-latest" diff --git a/composer.json b/composer.json index fcfb3d5a..1beb5e36 100644 --- a/composer.json +++ b/composer.json @@ -2,10 +2,10 @@ "name": "roave/backward-compatibility-check", "description": "Tool to compare two revisions of a public API to check for BC breaks", "require": { - "php": "~8.2.0 || ~8.3.0", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0", "azjezz/psl": "^3.0.2", "composer/composer": "^2.7.6", - "nikic/php-parser": "^4.19.1", + "nikic/php-parser": "^5.4.0", "nikolaposa/version": "^4.2.0", "ocramius/package-versions": "^2.8.0", "roave/better-reflection": "^6.26.0", @@ -26,12 +26,12 @@ "doctrine/coding-standard": "^12.0.0", "estahn/phpunit-json-assertions": "^4.0", "php-standard-library/psalm-plugin": "^2.3.0", - "phpunit/phpunit": "^9.6.19", - "psalm/plugin-phpunit": "^0.19.0", - "roave/infection-static-analysis-plugin": "^1.35.0", + "phpunit/phpunit": "^11.5.3", + "psalm/plugin-phpunit": "^0.19.2", + "roave/infection-static-analysis-plugin": "^1.36.0", "roave/security-advisories": "dev-master", "squizlabs/php_codesniffer": "^3.10.0", - "vimeo/psalm": "^5.24.0" + "vimeo/psalm": "^6.0.0" }, "conflict": { "revolt/event-loop": "<0.2.5", diff --git a/composer.lock b/composer.lock index b0c0e3c5..9fe151c2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d50ffb829acec585f0193fb15c3624b1", + "content-hash": "0d2baac250b49fc3899a7c8df134b54f", "packages": [ { "name": "azjezz/psl", - "version": "3.1.0", + "version": "3.2.0", "source": { "type": "git", "url": "https://github.com/azjezz/psl.git", - "reference": "4a9a6698d98a7dcbd679be8100d6935ff45e622b" + "reference": "14ad277e8c97a9df3518361c83acc1d456ea7db3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/azjezz/psl/zipball/4a9a6698d98a7dcbd679be8100d6935ff45e622b", - "reference": "4a9a6698d98a7dcbd679be8100d6935ff45e622b", + "url": "https://api.github.com/repos/azjezz/psl/zipball/14ad277e8c97a9df3518361c83acc1d456ea7db3", + "reference": "14ad277e8c97a9df3518361c83acc1d456ea7db3", "shasum": "" }, "require": { @@ -30,13 +30,11 @@ "revolt/event-loop": "^1.0.6" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.52.1", "php-coveralls/php-coveralls": "^2.7.0", "php-standard-library/psalm-plugin": "^2.3.0", "phpbench/phpbench": "^1.2.15", "phpunit/phpunit": "^9.6.18", "roave/infection-static-analysis-plugin": "^1.35.0", - "squizlabs/php_codesniffer": "^3.9.0", "vimeo/psalm": "^5.23.1" }, "suggest": { @@ -71,7 +69,7 @@ "description": "PHP Standard Library", "support": { "issues": "https://github.com/azjezz/psl/issues", - "source": "https://github.com/azjezz/psl/tree/3.1.0" + "source": "https://github.com/azjezz/psl/tree/3.2.0" }, "funding": [ { @@ -79,7 +77,7 @@ "type": "github" } ], - "time": "2024-11-21T13:15:46+00:00" + "time": "2025-01-23T06:25:16+00:00" }, { "name": "beberlei/assert", @@ -788,24 +786,23 @@ }, { "name": "jetbrains/phpstorm-stubs", - "version": "v2023.3", + "version": "v2024.3", "source": { "type": "git", "url": "https://github.com/JetBrains/phpstorm-stubs.git", - "reference": "99d8bcab934ae5362f33660b1cd4b8c4d617c40b" + "reference": "0e82bdfe850c71857ee4ee3501ed82a9fc5d043c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/JetBrains/phpstorm-stubs/zipball/99d8bcab934ae5362f33660b1cd4b8c4d617c40b", - "reference": "99d8bcab934ae5362f33660b1cd4b8c4d617c40b", + "url": "https://api.github.com/repos/JetBrains/phpstorm-stubs/zipball/0e82bdfe850c71857ee4ee3501ed82a9fc5d043c", + "reference": "0e82bdfe850c71857ee4ee3501ed82a9fc5d043c", "shasum": "" }, "require-dev": { - "friendsofphp/php-cs-fixer": "@stable", - "nikic/php-parser": "@stable", - "php": "^8.0", - "phpdocumentor/reflection-docblock": "@stable", - "phpunit/phpunit": "^9.6" + "friendsofphp/php-cs-fixer": "v3.64.0", + "nikic/php-parser": "v5.3.1", + "phpdocumentor/reflection-docblock": "5.6.0", + "phpunit/phpunit": "11.4.3" }, "type": "library", "autoload": { @@ -830,9 +827,9 @@ "type" ], "support": { - "source": "https://github.com/JetBrains/phpstorm-stubs/tree/v2023.3" + "source": "https://github.com/JetBrains/phpstorm-stubs/tree/v2024.3" }, - "time": "2023-11-01T18:52:29+00:00" + "time": "2024-12-14T08:03:12+00:00" }, { "name": "justinrainbow/json-schema", @@ -901,25 +898,27 @@ }, { "name": "nikic/php-parser", - "version": "v4.19.4", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2" + "reference": "447a020a1f875a434d62f2a401f53b82a396e494" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/715f4d25e225bc47b293a8b997fe6ce99bf987d2", - "reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494", + "reference": "447a020a1f875a434d62f2a401f53b82a396e494", "shasum": "" }, "require": { + "ext-ctype": "*", + "ext-json": "*", "ext-tokenizer": "*", - "php": ">=7.1" + "php": ">=7.4" }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^9.0" }, "bin": [ "bin/php-parse" @@ -927,7 +926,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.9-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -951,9 +950,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.4" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0" }, - "time": "2024-09-29T15:01:53+00:00" + "time": "2024-12-30T11:07:19+00:00" }, { "name": "nikolaposa/version", @@ -1328,28 +1327,31 @@ }, { "name": "roave/better-reflection", - "version": "6.26.0", + "version": "6.54.0", "source": { "type": "git", "url": "https://github.com/Roave/BetterReflection.git", - "reference": "658309b70c5afd7b9cfaad20c18aff3943cce23a" + "reference": "18f3778192f4f38d07f2f5bac63b43c5682f20e2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/BetterReflection/zipball/658309b70c5afd7b9cfaad20c18aff3943cce23a", - "reference": "658309b70c5afd7b9cfaad20c18aff3943cce23a", + "url": "https://api.github.com/repos/Roave/BetterReflection/zipball/18f3778192f4f38d07f2f5bac63b43c5682f20e2", + "reference": "18f3778192f4f38d07f2f5bac63b43c5682f20e2", "shasum": "" }, "require": { "ext-json": "*", - "jetbrains/phpstorm-stubs": "2023.3", - "nikic/php-parser": "^4.18.0", - "php": "~8.2.0 || ~8.3.2", - "roave/signature": "^1.8.0" + "jetbrains/phpstorm-stubs": "2024.3", + "nikic/php-parser": "^5.4.0", + "php": "~8.2.0 || ~8.3.2 || ~8.4.1" }, "conflict": { "thecodingmachine/safe": "<1.1.3" }, + "require-dev": { + "phpbench/phpbench": "^1.3.1", + "phpunit/phpunit": "^11.5.3" + }, "suggest": { "composer/composer": "Required to use the ComposerSourceLocator" }, @@ -1388,49 +1390,9 @@ "description": "Better Reflection - an improved code reflection API", "support": { "issues": "https://github.com/Roave/BetterReflection/issues", - "source": "https://github.com/Roave/BetterReflection/tree/6.26.0" - }, - "time": "2024-03-11T17:43:07+00:00" - }, - { - "name": "roave/signature", - "version": "1.8.0", - "source": { - "type": "git", - "url": "https://github.com/Roave/Signature.git", - "reference": "f92ce20f82c9a1df3b50fc56fbdaeb82cf4c9c5b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Roave/Signature/zipball/f92ce20f82c9a1df3b50fc56fbdaeb82cf4c9c5b", - "reference": "f92ce20f82c9a1df3b50fc56fbdaeb82cf4c9c5b", - "shasum": "" - }, - "require": { - "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" - }, - "require-dev": { - "doctrine/coding-standard": "^12.0.0", - "infection/infection": "^0.26.19", - "phpunit/phpunit": "^9.6.7", - "vimeo/psalm": "^5.9.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Roave\\Signature\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Sign and verify stuff", - "support": { - "issues": "https://github.com/Roave/Signature/issues", - "source": "https://github.com/Roave/Signature/tree/1.8.0" + "source": "https://github.com/Roave/BetterReflection/tree/6.54.0" }, - "time": "2023-11-25T00:11:29+00:00" + "time": "2025-01-25T13:13:25+00:00" }, { "name": "seld/jsonlint", @@ -2680,43 +2642,36 @@ "packages-dev": [ { "name": "amphp/amp", - "version": "v2.6.4", + "version": "v3.1.0", "source": { "type": "git", "url": "https://github.com/amphp/amp.git", - "reference": "ded3d9be08f526089eb7ee8d9f16a9768f9dec2d" + "reference": "7cf7fef3d667bfe4b2560bc87e67d5387a7bcde9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/amp/zipball/ded3d9be08f526089eb7ee8d9f16a9768f9dec2d", - "reference": "ded3d9be08f526089eb7ee8d9f16a9768f9dec2d", + "url": "https://api.github.com/repos/amphp/amp/zipball/7cf7fef3d667bfe4b2560bc87e67d5387a7bcde9", + "reference": "7cf7fef3d667bfe4b2560bc87e67d5387a7bcde9", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.1", + "revolt/event-loop": "^1 || ^0.2" }, "require-dev": { - "amphp/php-cs-fixer-config": "dev-master", - "amphp/phpunit-util": "^1", - "ext-json": "*", - "jetbrains/phpstorm-stubs": "^2019.3", - "phpunit/phpunit": "^7 | ^8 | ^9", - "react/promise": "^2", - "vimeo/psalm": "^3.12" + "amphp/php-cs-fixer-config": "^2", + "phpunit/phpunit": "^9", + "psalm/phar": "5.23.1" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.x-dev" - } - }, "autoload": { "files": [ - "lib/functions.php", - "lib/Internal/functions.php" + "src/functions.php", + "src/Future/functions.php", + "src/Internal/functions.php" ], "psr-4": { - "Amp\\": "lib" + "Amp\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -2724,10 +2679,6 @@ "MIT" ], "authors": [ - { - "name": "Daniel Lowrey", - "email": "rdlowrey@php.net" - }, { "name": "Aaron Piotrowski", "email": "aaron@trowski.com" @@ -2739,6 +2690,10 @@ { "name": "Niklas Keller", "email": "me@kelunik.com" + }, + { + "name": "Daniel Lowrey", + "email": "rdlowrey@php.net" } ], "description": "A non-blocking concurrency framework for PHP applications.", @@ -2755,9 +2710,8 @@ "promise" ], "support": { - "irc": "irc://irc.freenode.org/amphp", "issues": "https://github.com/amphp/amp/issues", - "source": "https://github.com/amphp/amp/tree/v2.6.4" + "source": "https://github.com/amphp/amp/tree/v3.1.0" }, "funding": [ { @@ -2765,41 +2719,45 @@ "type": "github" } ], - "time": "2024-03-21T18:52:26+00:00" + "time": "2025-01-26T16:07:39+00:00" }, { "name": "amphp/byte-stream", - "version": "v1.8.2", + "version": "v2.1.1", "source": { "type": "git", "url": "https://github.com/amphp/byte-stream.git", - "reference": "4f0e968ba3798a423730f567b1b50d3441c16ddc" + "reference": "daa00f2efdbd71565bf64ffefa89e37542addf93" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/byte-stream/zipball/4f0e968ba3798a423730f567b1b50d3441c16ddc", - "reference": "4f0e968ba3798a423730f567b1b50d3441c16ddc", + "url": "https://api.github.com/repos/amphp/byte-stream/zipball/daa00f2efdbd71565bf64ffefa89e37542addf93", + "reference": "daa00f2efdbd71565bf64ffefa89e37542addf93", "shasum": "" }, "require": { - "amphp/amp": "^2", - "php": ">=7.1" + "amphp/amp": "^3", + "amphp/parser": "^1.1", + "amphp/pipeline": "^1", + "amphp/serialization": "^1", + "amphp/sync": "^2", + "php": ">=8.1", + "revolt/event-loop": "^1 || ^0.2.3" }, "require-dev": { - "amphp/php-cs-fixer-config": "dev-master", - "amphp/phpunit-util": "^1.4", - "friendsofphp/php-cs-fixer": "^2.3", - "jetbrains/phpstorm-stubs": "^2019.3", - "phpunit/phpunit": "^6 || ^7 || ^8", - "psalm/phar": "^3.11.4" + "amphp/php-cs-fixer-config": "^2", + "amphp/phpunit-util": "^3", + "phpunit/phpunit": "^9", + "psalm/phar": "5.22.1" }, "type": "library", "autoload": { "files": [ - "lib/functions.php" + "src/functions.php", + "src/Internal/functions.php" ], "psr-4": { - "Amp\\ByteStream\\": "lib" + "Amp\\ByteStream\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -2828,7 +2786,7 @@ ], "support": { "issues": "https://github.com/amphp/byte-stream/issues", - "source": "https://github.com/amphp/byte-stream/tree/v1.8.2" + "source": "https://github.com/amphp/byte-stream/tree/v2.1.1" }, "funding": [ { @@ -2836,37 +2794,296 @@ "type": "github" } ], - "time": "2024-04-13T18:00:56+00:00" + "time": "2024-02-17T04:49:38+00:00" }, { - "name": "colinodell/json5", + "name": "amphp/parser", + "version": "v1.1.1", + "source": { + "type": "git", + "url": "https://github.com/amphp/parser.git", + "reference": "3cf1f8b32a0171d4b1bed93d25617637a77cded7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/amphp/parser/zipball/3cf1f8b32a0171d4b1bed93d25617637a77cded7", + "reference": "3cf1f8b32a0171d4b1bed93d25617637a77cded7", + "shasum": "" + }, + "require": { + "php": ">=7.4" + }, + "require-dev": { + "amphp/php-cs-fixer-config": "^2", + "phpunit/phpunit": "^9", + "psalm/phar": "^5.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Amp\\Parser\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" + }, + { + "name": "Niklas Keller", + "email": "me@kelunik.com" + } + ], + "description": "A generator parser to make streaming parsers simple.", + "homepage": "https://github.com/amphp/parser", + "keywords": [ + "async", + "non-blocking", + "parser", + "stream" + ], + "support": { + "issues": "https://github.com/amphp/parser/issues", + "source": "https://github.com/amphp/parser/tree/v1.1.1" + }, + "funding": [ + { + "url": "https://github.com/amphp", + "type": "github" + } + ], + "time": "2024-03-21T19:16:53+00:00" + }, + { + "name": "amphp/pipeline", + "version": "v1.2.2", + "source": { + "type": "git", + "url": "https://github.com/amphp/pipeline.git", + "reference": "97cbf289f4d8877acfe58dd90ed5a4370a43caa4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/amphp/pipeline/zipball/97cbf289f4d8877acfe58dd90ed5a4370a43caa4", + "reference": "97cbf289f4d8877acfe58dd90ed5a4370a43caa4", + "shasum": "" + }, + "require": { + "amphp/amp": "^3", + "php": ">=8.1", + "revolt/event-loop": "^1" + }, + "require-dev": { + "amphp/php-cs-fixer-config": "^2", + "amphp/phpunit-util": "^3", + "phpunit/phpunit": "^9", + "psalm/phar": "^5.18" + }, + "type": "library", + "autoload": { + "psr-4": { + "Amp\\Pipeline\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" + }, + { + "name": "Niklas Keller", + "email": "me@kelunik.com" + } + ], + "description": "Asynchronous iterators and operators.", + "homepage": "https://amphp.org/pipeline", + "keywords": [ + "amp", + "amphp", + "async", + "io", + "iterator", + "non-blocking" + ], + "support": { + "issues": "https://github.com/amphp/pipeline/issues", + "source": "https://github.com/amphp/pipeline/tree/v1.2.2" + }, + "funding": [ + { + "url": "https://github.com/amphp", + "type": "github" + } + ], + "time": "2025-01-19T15:42:46+00:00" + }, + { + "name": "amphp/serialization", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/amphp/serialization.git", + "reference": "693e77b2fb0b266c3c7d622317f881de44ae94a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/amphp/serialization/zipball/693e77b2fb0b266c3c7d622317f881de44ae94a1", + "reference": "693e77b2fb0b266c3c7d622317f881de44ae94a1", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "amphp/php-cs-fixer-config": "dev-master", + "phpunit/phpunit": "^9 || ^8 || ^7" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Amp\\Serialization\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" + }, + { + "name": "Niklas Keller", + "email": "me@kelunik.com" + } + ], + "description": "Serialization tools for IPC and data storage in PHP.", + "homepage": "https://github.com/amphp/serialization", + "keywords": [ + "async", + "asynchronous", + "serialization", + "serialize" + ], + "support": { + "issues": "https://github.com/amphp/serialization/issues", + "source": "https://github.com/amphp/serialization/tree/master" + }, + "time": "2020-03-25T21:39:07+00:00" + }, + { + "name": "amphp/sync", "version": "v2.3.0", + "source": { + "type": "git", + "url": "https://github.com/amphp/sync.git", + "reference": "217097b785130d77cfcc58ff583cf26cd1770bf1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/amphp/sync/zipball/217097b785130d77cfcc58ff583cf26cd1770bf1", + "reference": "217097b785130d77cfcc58ff583cf26cd1770bf1", + "shasum": "" + }, + "require": { + "amphp/amp": "^3", + "amphp/pipeline": "^1", + "amphp/serialization": "^1", + "php": ">=8.1", + "revolt/event-loop": "^1 || ^0.2" + }, + "require-dev": { + "amphp/php-cs-fixer-config": "^2", + "amphp/phpunit-util": "^3", + "phpunit/phpunit": "^9", + "psalm/phar": "5.23" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Amp\\Sync\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aaron Piotrowski", + "email": "aaron@trowski.com" + }, + { + "name": "Niklas Keller", + "email": "me@kelunik.com" + }, + { + "name": "Stephen Coakley", + "email": "me@stephencoakley.com" + } + ], + "description": "Non-blocking synchronization primitives for PHP based on Amp and Revolt.", + "homepage": "https://github.com/amphp/sync", + "keywords": [ + "async", + "asynchronous", + "mutex", + "semaphore", + "synchronization" + ], + "support": { + "issues": "https://github.com/amphp/sync/issues", + "source": "https://github.com/amphp/sync/tree/v2.3.0" + }, + "funding": [ + { + "url": "https://github.com/amphp", + "type": "github" + } + ], + "time": "2024-08-03T19:31:26+00:00" + }, + { + "name": "colinodell/json5", + "version": "v3.0.0", "source": { "type": "git", "url": "https://github.com/colinodell/json5.git", - "reference": "15b063f8cb5e6deb15f0cd39123264ec0d19c710" + "reference": "5724d21bc5c910c2560af1b8915f0cc0163579c8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/colinodell/json5/zipball/15b063f8cb5e6deb15f0cd39123264ec0d19c710", - "reference": "15b063f8cb5e6deb15f0cd39123264ec0d19c710", + "url": "https://api.github.com/repos/colinodell/json5/zipball/5724d21bc5c910c2560af1b8915f0cc0163579c8", + "reference": "5724d21bc5c910c2560af1b8915f0cc0163579c8", "shasum": "" }, "require": { "ext-json": "*", "ext-mbstring": "*", - "php": "^7.1.3|^8.0" - }, - "conflict": { - "scrutinizer/ocular": "1.7.*" + "php": "^8.0" }, "require-dev": { - "mikehaertl/php-shellcommand": "^1.2.5", - "phpstan/phpstan": "^1.4", - "scrutinizer/ocular": "^1.6", - "squizlabs/php_codesniffer": "^2.3 || ^3.0", - "symfony/finder": "^4.4|^5.4|^6.0", - "symfony/phpunit-bridge": "^5.4|^6.0" + "mikehaertl/php-shellcommand": "^1.7.0", + "phpstan/phpstan": "^1.10.57", + "scrutinizer/ocular": "^1.9", + "squizlabs/php_codesniffer": "^3.8.1", + "symfony/finder": "^6.0|^7.0", + "symfony/phpunit-bridge": "^7.0.3" }, "bin": [ "bin/json5" @@ -2874,7 +3091,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -2907,7 +3124,7 @@ ], "support": { "issues": "https://github.com/colinodell/json5/issues", - "source": "https://github.com/colinodell/json5/tree/v2.3.0" + "source": "https://github.com/colinodell/json5/tree/v3.0.0" }, "funding": [ { @@ -2927,7 +3144,7 @@ "type": "patreon" } ], - "time": "2022-12-27T16:44:40+00:00" + "time": "2024-02-09T13:06:12+00:00" }, { "name": "dealerdirect/phpcodesniffer-composer-installer", @@ -3146,78 +3363,8 @@ "time": "2024-12-07T21:18:45+00:00" }, { - "name": "doctrine/instantiator", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", - "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", - "shasum": "" - }, - "require": { - "php": "^8.1" - }, - "require-dev": { - "doctrine/coding-standard": "^11", - "ext-pdo": "*", - "ext-phar": "*", - "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^1.9.4", - "phpstan/phpstan-phpunit": "^1.3", - "phpunit/phpunit": "^9.5.27", - "vimeo/psalm": "^5.4" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "https://ocramius.github.io/" - } - ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", - "keywords": [ - "constructor", - "instantiate" - ], - "support": { - "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/2.0.0" - }, - "funding": [ - { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" - }, - { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", - "type": "tidelift" - } - ], - "time": "2022-12-30T00:23:10+00:00" - }, - { - "name": "estahn/phpunit-json-assertions", - "version": "v4.0.0", + "name": "estahn/phpunit-json-assertions", + "version": "v4.0.0", "source": { "type": "git", "url": "https://github.com/estahn/phpunit-json-assertions.git", @@ -3616,20 +3763,20 @@ }, { "name": "infection/infection", - "version": "0.27.10", + "version": "0.29.10", "source": { "type": "git", "url": "https://github.com/infection/infection.git", - "reference": "873cd3335774a114bef9ca93388e623bf362d820" + "reference": "cac7d20e5d286a37488527e477f5a695a9d7a44c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/infection/zipball/873cd3335774a114bef9ca93388e623bf362d820", - "reference": "873cd3335774a114bef9ca93388e623bf362d820", + "url": "https://api.github.com/repos/infection/infection/zipball/cac7d20e5d286a37488527e477f5a695a9d7a44c", + "reference": "cac7d20e5d286a37488527e477f5a695a9d7a44c", "shasum": "" }, "require": { - "colinodell/json5": "^2.2", + "colinodell/json5": "^2.2 || ^3.0", "composer-runtime-api": "^2.0", "composer/xdebug-handler": "^2.0 || ^3.0", "ext-dom": "*", @@ -3640,18 +3787,19 @@ "infection/abstract-testframework-adapter": "^0.5.0", "infection/extension-installer": "^0.1.0", "infection/include-interceptor": "^0.2.5", - "justinrainbow/json-schema": "^5.2.10", - "nikic/php-parser": "^4.15.1", + "infection/mutator": "^0.4", + "justinrainbow/json-schema": "^5.3", + "nikic/php-parser": "^5.3", "ondram/ci-detector": "^4.1.0", - "php": "^8.1", + "php": "^8.2", "sanmai/later": "^0.1.1", "sanmai/pipeline": "^5.1 || ^6", "sebastian/diff": "^3.0.2 || ^4.0 || ^5.0 || ^6.0", + "shish/safe": "^2.6", "symfony/console": "^5.4 || ^6.0 || ^7.0", "symfony/filesystem": "^5.4 || ^6.0 || ^7.0", "symfony/finder": "^5.4 || ^6.0 || ^7.0", "symfony/process": "^5.4 || ^6.0 || ^7.0", - "thecodingmachine/safe": "^2.1.2", "webmozart/assert": "^1.11" }, "conflict": { @@ -3660,23 +3808,18 @@ "phpunit/php-code-coverage": ">9,<9.1.4 || >9.2.17,<9.2.21" }, "require-dev": { - "brianium/paratest": "^6.11", "ext-simplexml": "*", - "fidry/makefile": "^0.2.0", + "fidry/makefile": "^1.0", "helmich/phpunit-json-assert": "^3.0", - "phpspec/prophecy": "^1.15", - "phpspec/prophecy-phpunit": "^2.0", "phpstan/extension-installer": "^1.1.0", "phpstan/phpstan": "^1.10.15", "phpstan/phpstan-phpunit": "^1.0.0", "phpstan/phpstan-strict-rules": "^1.1.0", "phpstan/phpstan-webmozart-assert": "^1.0.2", - "phpunit/phpunit": "^9.6", - "rector/rector": "^0.16.0", - "sidz/phpstan-rules": "^0.4.0", - "symfony/phpunit-bridge": "^5.4 || ^6.0 || ^7.0", - "symfony/yaml": "^5.4 || ^6.0 || ^7.0", - "thecodingmachine/phpstan-safe-rule": "^1.2.0" + "phpunit/phpunit": "^10.5", + "rector/rector": "^1.0", + "sidz/phpstan-rules": "^0.4", + "symfony/yaml": "^5.4 || ^6.0 || ^7.0" }, "bin": [ "bin/infection" @@ -3732,7 +3875,7 @@ ], "support": { "issues": "https://github.com/infection/infection/issues", - "source": "https://github.com/infection/infection/tree/0.27.10" + "source": "https://github.com/infection/infection/tree/0.29.10" }, "funding": [ { @@ -3744,7 +3887,60 @@ "type": "open_collective" } ], - "time": "2024-02-20T00:08:52+00:00" + "time": "2024-12-17T19:11:10+00:00" + }, + { + "name": "infection/mutator", + "version": "0.4.0", + "source": { + "type": "git", + "url": "https://github.com/infection/mutator.git", + "reference": "51d6d01a2357102030aee9d603063c4bad86b144" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/infection/mutator/zipball/51d6d01a2357102030aee9d603063c4bad86b144", + "reference": "51d6d01a2357102030aee9d603063c4bad86b144", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.6 || ^10" + }, + "type": "library", + "autoload": { + "psr-4": { + "Infection\\Mutator\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Maks Rafalko", + "email": "maks.rafalko@gmail.com" + } + ], + "description": "Mutator interface to implement custom mutators (mutation operators) for Infection", + "support": { + "issues": "https://github.com/infection/mutator/issues", + "source": "https://github.com/infection/mutator/tree/0.4.0" + }, + "funding": [ + { + "url": "https://github.com/infection", + "type": "github" + }, + { + "url": "https://opencollective.com/infection", + "type": "open_collective" + } + ], + "time": "2024-05-14T22:39:59+00:00" }, { "name": "mtdowling/jmespath.php", @@ -4397,35 +4593,35 @@ }, { "name": "phpunit/php-code-coverage", - "version": "9.2.32", + "version": "11.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "85402a822d1ecf1db1096959413d35e1c37cf1a5" + "reference": "418c59fd080954f8c4aa5631d9502ecda2387118" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/85402a822d1ecf1db1096959413d35e1c37cf1a5", - "reference": "85402a822d1ecf1db1096959413d35e1c37cf1a5", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/418c59fd080954f8c4aa5631d9502ecda2387118", + "reference": "418c59fd080954f8c4aa5631d9502ecda2387118", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.19.1 || ^5.1.0", - "php": ">=7.3", - "phpunit/php-file-iterator": "^3.0.6", - "phpunit/php-text-template": "^2.0.4", - "sebastian/code-unit-reverse-lookup": "^2.0.3", - "sebastian/complexity": "^2.0.3", - "sebastian/environment": "^5.1.5", - "sebastian/lines-of-code": "^1.0.4", - "sebastian/version": "^3.0.2", + "nikic/php-parser": "^5.3.1", + "php": ">=8.2", + "phpunit/php-file-iterator": "^5.1.0", + "phpunit/php-text-template": "^4.0.1", + "sebastian/code-unit-reverse-lookup": "^4.0.1", + "sebastian/complexity": "^4.0.1", + "sebastian/environment": "^7.2.0", + "sebastian/lines-of-code": "^3.0.1", + "sebastian/version": "^5.0.2", "theseer/tokenizer": "^1.2.3" }, "require-dev": { - "phpunit/phpunit": "^9.6" + "phpunit/phpunit": "^11.5.0" }, "suggest": { "ext-pcov": "PHP extension that provides line coverage", @@ -4434,7 +4630,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "9.2.x-dev" + "dev-main": "11.0.x-dev" } }, "autoload": { @@ -4463,7 +4659,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.32" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/11.0.8" }, "funding": [ { @@ -4471,32 +4667,32 @@ "type": "github" } ], - "time": "2024-08-22T04:23:01+00:00" + "time": "2024-12-11T12:34:27+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "3.0.6", + "version": "5.1.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" + "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", - "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/118cfaaa8bc5aef3287bf315b6060b1174754af6", + "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -4523,7 +4719,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.1.0" }, "funding": [ { @@ -4531,28 +4728,28 @@ "type": "github" } ], - "time": "2021-12-02T12:48:52+00:00" + "time": "2024-08-27T05:02:59+00:00" }, { "name": "phpunit/php-invoker", - "version": "3.1.1", + "version": "5.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", - "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/c1ca3814734c07492b3d4c5f794f4b0995333da2", + "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { "ext-pcntl": "*", - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.0" }, "suggest": { "ext-pcntl": "*" @@ -4560,7 +4757,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -4586,7 +4783,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-invoker/issues", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/5.0.1" }, "funding": [ { @@ -4594,32 +4792,32 @@ "type": "github" } ], - "time": "2020-09-28T05:58:55+00:00" + "time": "2024-07-03T05:07:44+00:00" }, { "name": "phpunit/php-text-template", - "version": "2.0.4", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", - "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/3e0404dc6b300e6bf56415467ebcb3fe4f33e964", + "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -4645,7 +4843,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/4.0.1" }, "funding": [ { @@ -4653,32 +4852,32 @@ "type": "github" } ], - "time": "2020-10-26T05:33:50+00:00" + "time": "2024-07-03T05:08:43+00:00" }, { "name": "phpunit/php-timer", - "version": "5.0.3", + "version": "7.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", - "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", + "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -4704,7 +4903,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + "security": "https://github.com/sebastianbergmann/php-timer/security/policy", + "source": "https://github.com/sebastianbergmann/php-timer/tree/7.0.1" }, "funding": [ { @@ -4712,24 +4912,23 @@ "type": "github" } ], - "time": "2020-10-26T13:16:10+00:00" + "time": "2024-07-03T05:09:35+00:00" }, { "name": "phpunit/phpunit", - "version": "9.6.22", + "version": "11.5.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "f80235cb4d3caa59ae09be3adf1ded27521d1a9c" + "reference": "30e319e578a7b5da3543073e30002bf82042f701" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f80235cb4d3caa59ae09be3adf1ded27521d1a9c", - "reference": "f80235cb4d3caa59ae09be3adf1ded27521d1a9c", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/30e319e578a7b5da3543073e30002bf82042f701", + "reference": "30e319e578a7b5da3543073e30002bf82042f701", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.5.0 || ^2", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", @@ -4739,27 +4938,26 @@ "myclabs/deep-copy": "^1.12.1", "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", - "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2.32", - "phpunit/php-file-iterator": "^3.0.6", - "phpunit/php-invoker": "^3.1.1", - "phpunit/php-text-template": "^2.0.4", - "phpunit/php-timer": "^5.0.3", - "sebastian/cli-parser": "^1.0.2", - "sebastian/code-unit": "^1.0.8", - "sebastian/comparator": "^4.0.8", - "sebastian/diff": "^4.0.6", - "sebastian/environment": "^5.1.5", - "sebastian/exporter": "^4.0.6", - "sebastian/global-state": "^5.0.7", - "sebastian/object-enumerator": "^4.0.4", - "sebastian/resource-operations": "^3.0.4", - "sebastian/type": "^3.2.1", - "sebastian/version": "^3.0.2" + "php": ">=8.2", + "phpunit/php-code-coverage": "^11.0.8", + "phpunit/php-file-iterator": "^5.1.0", + "phpunit/php-invoker": "^5.0.1", + "phpunit/php-text-template": "^4.0.1", + "phpunit/php-timer": "^7.0.1", + "sebastian/cli-parser": "^3.0.2", + "sebastian/code-unit": "^3.0.2", + "sebastian/comparator": "^6.3.0", + "sebastian/diff": "^6.0.2", + "sebastian/environment": "^7.2.0", + "sebastian/exporter": "^6.3.0", + "sebastian/global-state": "^7.0.2", + "sebastian/object-enumerator": "^6.0.1", + "sebastian/type": "^5.1.0", + "sebastian/version": "^5.0.2", + "staabm/side-effects-detector": "^1.0.5" }, "suggest": { - "ext-soap": "To be able to generate mocks based on WSDL files", - "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + "ext-soap": "To be able to generate mocks based on WSDL files" }, "bin": [ "phpunit" @@ -4767,7 +4965,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "9.6-dev" + "dev-main": "11.5-dev" } }, "autoload": { @@ -4799,7 +4997,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.22" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.3" }, "funding": [ { @@ -4815,28 +5013,28 @@ "type": "tidelift" } ], - "time": "2024-12-05T13:48:26+00:00" + "time": "2025-01-13T09:36:00+00:00" }, { "name": "psalm/plugin-phpunit", - "version": "0.19.0", + "version": "0.19.2", "source": { "type": "git", "url": "https://github.com/psalm/psalm-plugin-phpunit.git", - "reference": "e344eaaa27871e79c6cb97b9efe52a735f9d1966" + "reference": "7b7a5cde988f83ccdbdf3ebaecd88192e01c5eb1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/psalm/psalm-plugin-phpunit/zipball/e344eaaa27871e79c6cb97b9efe52a735f9d1966", - "reference": "e344eaaa27871e79c6cb97b9efe52a735f9d1966", + "url": "https://api.github.com/repos/psalm/psalm-plugin-phpunit/zipball/7b7a5cde988f83ccdbdf3ebaecd88192e01c5eb1", + "reference": "7b7a5cde988f83ccdbdf3ebaecd88192e01c5eb1", "shasum": "" }, "require": { "composer/package-versions-deprecated": "^1.10", "composer/semver": "^1.4 || ^2.0 || ^3.0", "ext-simplexml": "*", - "php": "^7.4 || ^8.0", - "vimeo/psalm": "dev-master || ^5@beta || ^5.0" + "php": ">=8.1", + "vimeo/psalm": "dev-master || ^6" }, "conflict": { "phpunit/phpunit": "<7.5" @@ -4873,34 +5071,36 @@ "description": "Psalm plugin for PHPUnit", "support": { "issues": "https://github.com/psalm/psalm-plugin-phpunit/issues", - "source": "https://github.com/psalm/psalm-plugin-phpunit/tree/0.19.0" + "source": "https://github.com/psalm/psalm-plugin-phpunit/tree/0.19.2" }, - "time": "2024-03-15T10:43:15+00:00" + "time": "2025-01-26T11:39:17+00:00" }, { "name": "roave/infection-static-analysis-plugin", - "version": "1.35.0", + "version": "1.36.0", "source": { "type": "git", "url": "https://github.com/Roave/infection-static-analysis-plugin.git", - "reference": "3cb32845c5f758913a4b9eafd91ae18eafc26d82" + "reference": "5c05ce3c6f1e2aef6e975a179d229d654bf595ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/infection-static-analysis-plugin/zipball/3cb32845c5f758913a4b9eafd91ae18eafc26d82", - "reference": "3cb32845c5f758913a4b9eafd91ae18eafc26d82", + "url": "https://api.github.com/repos/Roave/infection-static-analysis-plugin/zipball/5c05ce3c6f1e2aef6e975a179d229d654bf595ce", + "reference": "5c05ce3c6f1e2aef6e975a179d229d654bf595ce", "shasum": "" }, "require": { "composer-runtime-api": "^2.2", - "infection/infection": "0.27.10", - "php": "~8.1.0 || ~8.2.0 || ~8.3.0", + "infection/infection": "0.29.10", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0", "sanmai/later": "^0.1.4", - "vimeo/psalm": "^4.30.0 || ^5.15" + "vimeo/psalm": "^6.0" }, "require-dev": { + "azjezz/psl": "^3.2", "doctrine/coding-standard": "^12.0.0", - "phpunit/phpunit": "^10.5.12" + "phpunit/phpunit": "^11.5.3", + "psalm/plugin-phpunit": "^0.19.2" }, "bin": [ "bin/roave-infection-static-analysis-plugin" @@ -4924,9 +5124,9 @@ "description": "Static analysis on top of mutation testing - prevents escaped mutants from being invalid according to static analysis", "support": { "issues": "https://github.com/Roave/infection-static-analysis-plugin/issues", - "source": "https://github.com/Roave/infection-static-analysis-plugin/tree/1.35.0" + "source": "https://github.com/Roave/infection-static-analysis-plugin/tree/1.36.0" }, - "time": "2024-03-10T11:55:48+00:00" + "time": "2025-01-27T02:18:13+00:00" }, { "name": "roave/security-advisories", @@ -4934,12 +5134,12 @@ "source": { "type": "git", "url": "https://github.com/Roave/SecurityAdvisories.git", - "reference": "fb6b00411f2c212631318ab412b2208632e507ba" + "reference": "fa05b1cdeb1d38692aea5d34bed226b682403a6d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/fb6b00411f2c212631318ab412b2208632e507ba", - "reference": "fb6b00411f2c212631318ab412b2208632e507ba", + "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/fa05b1cdeb1d38692aea5d34bed226b682403a6d", + "reference": "fa05b1cdeb1d38692aea5d34bed226b682403a6d", "shasum": "" }, "conflict": { @@ -5412,7 +5612,7 @@ "phpfastcache/phpfastcache": "<6.1.5|>=7,<7.1.2|>=8,<8.0.7", "phpmailer/phpmailer": "<6.5", "phpmussel/phpmussel": ">=1,<1.6", - "phpmyadmin/phpmyadmin": "<5.2.1", + "phpmyadmin/phpmyadmin": "<5.2.2", "phpmyfaq/phpmyfaq": "<3.2.5|==3.2.5|>=3.2.10,<=4.0.1", "phpoffice/common": "<0.2.9", "phpoffice/phpexcel": "<1.8.1", @@ -5446,6 +5646,7 @@ "prestashop/gamification": "<2.3.2", "prestashop/prestashop": "<8.1.6", "prestashop/productcomments": "<5.0.2", + "prestashop/ps_contactinfo": "<=3.3.2", "prestashop/ps_emailsubscription": "<2.6.1", "prestashop/ps_facetedsearch": "<3.4.1", "prestashop/ps_linklist": "<3.1", @@ -5794,7 +5995,7 @@ "type": "tidelift" } ], - "time": "2025-01-21T22:04:49+00:00" + "time": "2025-01-23T18:06:21+00:00" }, { "name": "sanmai/later", @@ -5927,28 +6128,28 @@ }, { "name": "sebastian/cli-parser", - "version": "1.0.2", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b" + "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/2b56bea83a09de3ac06bb18b92f068e60cc6f50b", - "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/15c5dd40dc4f38794d383bb95465193f5e0ae180", + "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -5971,7 +6172,8 @@ "homepage": "https://github.com/sebastianbergmann/cli-parser", "support": { "issues": "https://github.com/sebastianbergmann/cli-parser/issues", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.2" + "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/3.0.2" }, "funding": [ { @@ -5979,32 +6181,32 @@ "type": "github" } ], - "time": "2024-03-02T06:27:43+00:00" + "time": "2024-07-03T04:41:36+00:00" }, { "name": "sebastian/code-unit", - "version": "1.0.8", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" + "reference": "ee88b0cdbe74cf8dd3b54940ff17643c0d6543ca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", - "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/ee88b0cdbe74cf8dd3b54940ff17643c0d6543ca", + "reference": "ee88b0cdbe74cf8dd3b54940ff17643c0d6543ca", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -6027,7 +6229,8 @@ "homepage": "https://github.com/sebastianbergmann/code-unit", "support": { "issues": "https://github.com/sebastianbergmann/code-unit/issues", - "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + "security": "https://github.com/sebastianbergmann/code-unit/security/policy", + "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.2" }, "funding": [ { @@ -6035,32 +6238,32 @@ "type": "github" } ], - "time": "2020-10-26T13:08:54+00:00" + "time": "2024-12-12T09:59:06+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", - "version": "2.0.3", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" + "reference": "183a9b2632194febd219bb9246eee421dad8d45e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", - "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/183a9b2632194febd219bb9246eee421dad8d45e", + "reference": "183a9b2632194febd219bb9246eee421dad8d45e", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -6082,7 +6285,8 @@ "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", "support": { "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + "security": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/security/policy", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/4.0.1" }, "funding": [ { @@ -6090,34 +6294,39 @@ "type": "github" } ], - "time": "2020-09-28T05:30:19+00:00" + "time": "2024-07-03T04:45:54+00:00" }, { "name": "sebastian/comparator", - "version": "4.0.8", + "version": "6.3.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a" + "reference": "d4e47a769525c4dd38cea90e5dcd435ddbbc7115" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/d4e47a769525c4dd38cea90e5dcd435ddbbc7115", + "reference": "d4e47a769525c4dd38cea90e5dcd435ddbbc7115", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/diff": "^4.0", - "sebastian/exporter": "^4.0" + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.2", + "sebastian/diff": "^6.0", + "sebastian/exporter": "^6.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.4" + }, + "suggest": { + "ext-bcmath": "For comparing BcMath\\Number objects" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "6.2-dev" } }, "autoload": { @@ -6156,7 +6365,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/6.3.0" }, "funding": [ { @@ -6164,33 +6374,33 @@ "type": "github" } ], - "time": "2022-09-14T12:41:17+00:00" + "time": "2025-01-06T10:28:19+00:00" }, { "name": "sebastian/complexity", - "version": "2.0.3", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a" + "reference": "ee41d384ab1906c68852636b6de493846e13e5a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/25f207c40d62b8b7aa32f5ab026c53561964053a", - "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/ee41d384ab1906c68852636b6de493846e13e5a0", + "reference": "ee41d384ab1906c68852636b6de493846e13e5a0", "shasum": "" }, "require": { - "nikic/php-parser": "^4.18 || ^5.0", - "php": ">=7.3" + "nikic/php-parser": "^5.0", + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -6213,7 +6423,8 @@ "homepage": "https://github.com/sebastianbergmann/complexity", "support": { "issues": "https://github.com/sebastianbergmann/complexity/issues", - "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.3" + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/4.0.1" }, "funding": [ { @@ -6221,33 +6432,33 @@ "type": "github" } ], - "time": "2023-12-22T06:19:30+00:00" + "time": "2024-07-03T04:49:50+00:00" }, { "name": "sebastian/diff", - "version": "4.0.6", + "version": "6.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc" + "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ba01945089c3a293b01ba9badc29ad55b106b0bc", - "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/b4ccd857127db5d41a5b676f24b51371d76d8544", + "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3", + "phpunit/phpunit": "^11.0", "symfony/process": "^4.2 || ^5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -6279,7 +6490,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/4.0.6" + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/6.0.2" }, "funding": [ { @@ -6287,27 +6499,27 @@ "type": "github" } ], - "time": "2024-03-02T06:30:58+00:00" + "time": "2024-07-03T04:53:05+00:00" }, { "name": "sebastian/environment", - "version": "5.1.5", + "version": "7.2.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" + "reference": "855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", - "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5", + "reference": "855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.0" }, "suggest": { "ext-posix": "*" @@ -6315,7 +6527,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.1-dev" + "dev-main": "7.2-dev" } }, "autoload": { @@ -6334,7 +6546,7 @@ } ], "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", + "homepage": "https://github.com/sebastianbergmann/environment", "keywords": [ "Xdebug", "environment", @@ -6342,7 +6554,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/7.2.0" }, "funding": [ { @@ -6350,34 +6563,34 @@ "type": "github" } ], - "time": "2023-02-03T06:03:51+00:00" + "time": "2024-07-03T04:54:44+00:00" }, { "name": "sebastian/exporter", - "version": "4.0.6", + "version": "6.3.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72" + "reference": "3473f61172093b2da7de1fb5782e1f24cc036dc3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/78c00df8f170e02473b682df15bfcdacc3d32d72", - "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/3473f61172093b2da7de1fb5782e1f24cc036dc3", + "reference": "3473f61172093b2da7de1fb5782e1f24cc036dc3", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/recursion-context": "^4.0" + "ext-mbstring": "*", + "php": ">=8.2", + "sebastian/recursion-context": "^6.0" }, "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "6.1-dev" } }, "autoload": { @@ -6419,7 +6632,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.6" + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/6.3.0" }, "funding": [ { @@ -6427,38 +6641,35 @@ "type": "github" } ], - "time": "2024-03-02T06:33:00+00:00" + "time": "2024-12-05T09:17:50+00:00" }, { "name": "sebastian/global-state", - "version": "5.0.7", + "version": "7.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9" + "reference": "3be331570a721f9a4b5917f4209773de17f747d7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", - "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/3be331570a721f9a4b5917f4209773de17f747d7", + "reference": "3be331570a721f9a4b5917f4209773de17f747d7", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" + "php": ">=8.2", + "sebastian/object-reflector": "^4.0", + "sebastian/recursion-context": "^6.0" }, "require-dev": { "ext-dom": "*", - "phpunit/phpunit": "^9.3" - }, - "suggest": { - "ext-uopz": "*" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -6477,13 +6688,14 @@ } ], "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", "keywords": [ "global state" ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.7" + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/7.0.2" }, "funding": [ { @@ -6491,33 +6703,33 @@ "type": "github" } ], - "time": "2024-03-02T06:35:11+00:00" + "time": "2024-07-03T04:57:36+00:00" }, { "name": "sebastian/lines-of-code", - "version": "1.0.4", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5" + "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/e1e4a170560925c26d424b6a03aed157e7dcc5c5", - "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d36ad0d782e5756913e42ad87cb2890f4ffe467a", + "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a", "shasum": "" }, "require": { - "nikic/php-parser": "^4.18 || ^5.0", - "php": ">=7.3" + "nikic/php-parser": "^5.0", + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -6540,7 +6752,8 @@ "homepage": "https://github.com/sebastianbergmann/lines-of-code", "support": { "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.4" + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/3.0.1" }, "funding": [ { @@ -6548,34 +6761,34 @@ "type": "github" } ], - "time": "2023-12-22T06:20:34+00:00" + "time": "2024-07-03T04:58:38+00:00" }, { "name": "sebastian/object-enumerator", - "version": "4.0.4", + "version": "6.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" + "reference": "f5b498e631a74204185071eb41f33f38d64608aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", - "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/f5b498e631a74204185071eb41f33f38d64608aa", + "reference": "f5b498e631a74204185071eb41f33f38d64608aa", "shasum": "" }, "require": { - "php": ">=7.3", - "sebastian/object-reflector": "^2.0", - "sebastian/recursion-context": "^4.0" + "php": ">=8.2", + "sebastian/object-reflector": "^4.0", + "sebastian/recursion-context": "^6.0" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -6597,7 +6810,8 @@ "homepage": "https://github.com/sebastianbergmann/object-enumerator/", "support": { "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/6.0.1" }, "funding": [ { @@ -6605,32 +6819,32 @@ "type": "github" } ], - "time": "2020-10-26T13:12:34+00:00" + "time": "2024-07-03T05:00:13+00:00" }, { "name": "sebastian/object-reflector", - "version": "2.0.4", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" + "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", - "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/6e1a43b411b2ad34146dee7524cb13a068bb35f9", + "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -6652,7 +6866,8 @@ "homepage": "https://github.com/sebastianbergmann/object-reflector/", "support": { "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/4.0.1" }, "funding": [ { @@ -6660,32 +6875,32 @@ "type": "github" } ], - "time": "2020-10-26T13:14:26+00:00" + "time": "2024-07-03T05:01:32+00:00" }, { "name": "sebastian/recursion-context", - "version": "4.0.5", + "version": "6.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" + "reference": "694d156164372abbd149a4b85ccda2e4670c0e16" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/694d156164372abbd149a4b85ccda2e4670c0e16", + "reference": "694d156164372abbd149a4b85ccda2e4670c0e16", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -6715,7 +6930,8 @@ "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" + "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/6.0.2" }, "funding": [ { @@ -6723,32 +6939,32 @@ "type": "github" } ], - "time": "2023-02-03T06:07:39+00:00" + "time": "2024-07-03T05:10:34+00:00" }, { - "name": "sebastian/resource-operations", - "version": "3.0.4", + "name": "sebastian/type", + "version": "5.1.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e" + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "461b9c5da241511a2a0e8f240814fb23ce5c0aac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/05d5692a7993ecccd56a03e40cd7e5b09b1d404e", - "reference": "05d5692a7993ecccd56a03e40cd7e5b09b1d404e", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/461b9c5da241511a2a0e8f240814fb23ce5c0aac", + "reference": "461b9c5da241511a2a0e8f240814fb23ce5c0aac", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^9.0" + "phpunit/phpunit": "^11.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "5.1-dev" } }, "autoload": { @@ -6763,13 +6979,16 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", "support": { - "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.4" + "issues": "https://github.com/sebastianbergmann/type/issues", + "security": "https://github.com/sebastianbergmann/type/security/policy", + "source": "https://github.com/sebastianbergmann/type/tree/5.1.0" }, "funding": [ { @@ -6777,32 +6996,29 @@ "type": "github" } ], - "time": "2024-03-14T16:00:52+00:00" + "time": "2024-09-17T13:12:04+00:00" }, { - "name": "sebastian/type", - "version": "3.2.1", + "name": "sebastian/version", + "version": "5.0.2", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/type.git", - "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7" + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", - "reference": "75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c687e3387b99f5b03b6caa64c74b63e2936ff874", + "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874", "shasum": "" }, "require": { - "php": ">=7.3" - }, - "require-dev": { - "phpunit/phpunit": "^9.5" + "php": ">=8.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.2-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -6821,11 +7037,12 @@ "role": "lead" } ], - "description": "Collection of value objects that represent the types of the PHP type system", - "homepage": "https://github.com/sebastianbergmann/type", + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", "support": { - "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.2.1" + "issues": "https://github.com/sebastianbergmann/version/issues", + "security": "https://github.com/sebastianbergmann/version/security/policy", + "source": "https://github.com/sebastianbergmann/version/tree/5.0.2" }, "funding": [ { @@ -6833,60 +7050,158 @@ "type": "github" } ], - "time": "2023-02-03T06:13:03+00:00" + "time": "2024-10-09T05:16:32+00:00" }, { - "name": "sebastian/version", - "version": "3.0.2", + "name": "shish/safe", + "version": "v2.6.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c6c1022351a901512170118436c764e473f6de8c" + "url": "https://github.com/shish/safe.git", + "reference": "482e6227330a70b21c1c9e9301cc99b5658ccb89" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", - "reference": "c6c1022351a901512170118436c764e473f6de8c", + "url": "https://api.github.com/repos/shish/safe/zipball/482e6227330a70b21c1c9e9301cc99b5658ccb89", + "reference": "482e6227330a70b21c1c9e9301cc99b5658ccb89", "shasum": "" }, "require": { - "php": ">=7.3" + "php": ">= 8.2" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } + "replace": { + "thecodingmachine/safe": "2.5.0" + }, + "require-dev": { + "phpstan/phpstan": "^1", + "phpunit/phpunit": "^10.0 || ^11.0", + "squizlabs/php_codesniffer": "^3", + "thecodingmachine/phpstan-strict-rules": "^1.0" }, + "type": "library", "autoload": { + "files": [ + "deprecated/apc.php", + "deprecated/array.php", + "deprecated/datetime.php", + "deprecated/libevent.php", + "deprecated/misc.php", + "deprecated/password.php", + "deprecated/mssql.php", + "deprecated/stats.php", + "deprecated/strings.php", + "lib/special_cases.php", + "deprecated/mysqli.php", + "generated/apache.php", + "generated/apcu.php", + "generated/array.php", + "generated/bzip2.php", + "generated/calendar.php", + "generated/classobj.php", + "generated/com.php", + "generated/cubrid.php", + "generated/curl.php", + "generated/datetime.php", + "generated/dir.php", + "generated/eio.php", + "generated/errorfunc.php", + "generated/exec.php", + "generated/fileinfo.php", + "generated/filesystem.php", + "generated/filter.php", + "generated/fpm.php", + "generated/ftp.php", + "generated/funchand.php", + "generated/gettext.php", + "generated/gnupg.php", + "generated/hash.php", + "generated/ibase.php", + "generated/ibmDb2.php", + "generated/iconv.php", + "generated/image.php", + "generated/imap.php", + "generated/info.php", + "generated/inotify.php", + "generated/json.php", + "generated/ldap.php", + "generated/libxml.php", + "generated/lzf.php", + "generated/mailparse.php", + "generated/mbstring.php", + "generated/misc.php", + "generated/mysql.php", + "generated/network.php", + "generated/oci8.php", + "generated/opcache.php", + "generated/openssl.php", + "generated/outcontrol.php", + "generated/pcntl.php", + "generated/pcre.php", + "generated/pgsql.php", + "generated/posix.php", + "generated/ps.php", + "generated/pspell.php", + "generated/readline.php", + "generated/rnp.php", + "generated/rpminfo.php", + "generated/rrd.php", + "generated/sem.php", + "generated/session.php", + "generated/shmop.php", + "generated/sockets.php", + "generated/sodium.php", + "generated/solr.php", + "generated/spl.php", + "generated/sqlsrv.php", + "generated/ssdeep.php", + "generated/ssh2.php", + "generated/stream.php", + "generated/strings.php", + "generated/swoole.php", + "generated/uodbc.php", + "generated/uopz.php", + "generated/url.php", + "generated/var.php", + "generated/xdiff.php", + "generated/xml.php", + "generated/xmlrpc.php", + "generated/yaml.php", + "generated/yaz.php", + "generated/zip.php", + "generated/zlib.php" + ], "classmap": [ - "src/" + "lib/DateTime.php", + "lib/DateTimeImmutable.php", + "lib/Exceptions/", + "deprecated/Exceptions/", + "generated/Exceptions/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } + "MIT" ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", + "description": "PHP core functions that throw exceptions instead of returning FALSE on error (a less-abandoned fork of thecodingmachine/safe)", "support": { - "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + "issues": "https://github.com/shish/safe/issues", + "source": "https://github.com/shish/safe/tree/v2.6.4" }, "funding": [ { - "url": "https://github.com/sebastianbergmann", + "url": "https://github.com/OskarStark", + "type": "github" + }, + { + "url": "https://github.com/shish", + "type": "github" + }, + { + "url": "https://github.com/staabm", "type": "github" } ], - "time": "2020-09-28T06:39:44+00:00" + "time": "2024-12-18T13:36:07+00:00" }, { "name": "slevomat/coding-standard", @@ -7023,16 +7338,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.11.2", + "version": "3.11.3", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079" + "reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1368f4a58c3c52114b86b1abe8f4098869cb0079", - "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10", + "reference": "ba05f990e79cbe69b9f35c8c1ac8dca7eecc3a10", "shasum": "" }, "require": { @@ -7097,148 +7412,65 @@ { "url": "https://opencollective.com/php_codesniffer", "type": "open_collective" + }, + { + "url": "https://thanks.dev/phpcsstandards", + "type": "thanks_dev" } ], - "time": "2024-12-11T16:04:26+00:00" + "time": "2025-01-23T17:04:15+00:00" }, { - "name": "thecodingmachine/safe", - "version": "v2.5.0", + "name": "staabm/side-effects-detector", + "version": "1.0.5", "source": { "type": "git", - "url": "https://github.com/thecodingmachine/safe.git", - "reference": "3115ecd6b4391662b4931daac4eba6b07a2ac1f0" + "url": "https://github.com/staabm/side-effects-detector.git", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/3115ecd6b4391662b4931daac4eba6b07a2ac1f0", - "reference": "3115ecd6b4391662b4931daac4eba6b07a2ac1f0", + "url": "https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163", "shasum": "" }, "require": { - "php": "^8.0" + "ext-tokenizer": "*", + "php": "^7.4 || ^8.0" }, "require-dev": { - "phpstan/phpstan": "^1.5", - "phpunit/phpunit": "^9.5", - "squizlabs/php_codesniffer": "^3.2", - "thecodingmachine/phpstan-strict-rules": "^1.0" + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.6", + "phpunit/phpunit": "^9.6.21", + "symfony/var-dumper": "^5.4.43", + "tomasvotruba/type-coverage": "1.0.0", + "tomasvotruba/unused-public": "1.0.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.2.x-dev" - } - }, "autoload": { - "files": [ - "deprecated/apc.php", - "deprecated/array.php", - "deprecated/datetime.php", - "deprecated/libevent.php", - "deprecated/misc.php", - "deprecated/password.php", - "deprecated/mssql.php", - "deprecated/stats.php", - "deprecated/strings.php", - "lib/special_cases.php", - "deprecated/mysqli.php", - "generated/apache.php", - "generated/apcu.php", - "generated/array.php", - "generated/bzip2.php", - "generated/calendar.php", - "generated/classobj.php", - "generated/com.php", - "generated/cubrid.php", - "generated/curl.php", - "generated/datetime.php", - "generated/dir.php", - "generated/eio.php", - "generated/errorfunc.php", - "generated/exec.php", - "generated/fileinfo.php", - "generated/filesystem.php", - "generated/filter.php", - "generated/fpm.php", - "generated/ftp.php", - "generated/funchand.php", - "generated/gettext.php", - "generated/gmp.php", - "generated/gnupg.php", - "generated/hash.php", - "generated/ibase.php", - "generated/ibmDb2.php", - "generated/iconv.php", - "generated/image.php", - "generated/imap.php", - "generated/info.php", - "generated/inotify.php", - "generated/json.php", - "generated/ldap.php", - "generated/libxml.php", - "generated/lzf.php", - "generated/mailparse.php", - "generated/mbstring.php", - "generated/misc.php", - "generated/mysql.php", - "generated/network.php", - "generated/oci8.php", - "generated/opcache.php", - "generated/openssl.php", - "generated/outcontrol.php", - "generated/pcntl.php", - "generated/pcre.php", - "generated/pgsql.php", - "generated/posix.php", - "generated/ps.php", - "generated/pspell.php", - "generated/readline.php", - "generated/rpminfo.php", - "generated/rrd.php", - "generated/sem.php", - "generated/session.php", - "generated/shmop.php", - "generated/sockets.php", - "generated/sodium.php", - "generated/solr.php", - "generated/spl.php", - "generated/sqlsrv.php", - "generated/ssdeep.php", - "generated/ssh2.php", - "generated/stream.php", - "generated/strings.php", - "generated/swoole.php", - "generated/uodbc.php", - "generated/uopz.php", - "generated/url.php", - "generated/var.php", - "generated/xdiff.php", - "generated/xml.php", - "generated/xmlrpc.php", - "generated/yaml.php", - "generated/yaz.php", - "generated/zip.php", - "generated/zlib.php" - ], "classmap": [ - "lib/DateTime.php", - "lib/DateTimeImmutable.php", - "lib/Exceptions/", - "deprecated/Exceptions/", - "generated/Exceptions/" + "lib/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "description": "PHP core functions that throw exceptions instead of returning FALSE on error", + "description": "A static analysis tool to detect side effects in PHP code", + "keywords": [ + "static analysis" + ], "support": { - "issues": "https://github.com/thecodingmachine/safe/issues", - "source": "https://github.com/thecodingmachine/safe/tree/v2.5.0" + "issues": "https://github.com/staabm/side-effects-detector/issues", + "source": "https://github.com/staabm/side-effects-detector/tree/1.0.5" }, - "time": "2023-04-05T11:54:14+00:00" + "funding": [ + { + "url": "https://github.com/staabm", + "type": "github" + } + ], + "time": "2024-10-20T05:08:20+00:00" }, { "name": "theseer/tokenizer", @@ -7292,21 +7524,21 @@ }, { "name": "vimeo/psalm", - "version": "5.26.1", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "d747f6500b38ac4f7dfc5edbcae6e4b637d7add0" + "reference": "b8e96bb617bf59382113b1b56cef751f648a7dc9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/d747f6500b38ac4f7dfc5edbcae6e4b637d7add0", - "reference": "d747f6500b38ac4f7dfc5edbcae6e4b637d7add0", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/b8e96bb617bf59382113b1b56cef751f648a7dc9", + "reference": "b8e96bb617bf59382113b1b56cef751f648a7dc9", "shasum": "" }, "require": { - "amphp/amp": "^2.4.2", - "amphp/byte-stream": "^1.5", + "amphp/amp": "^3", + "amphp/byte-stream": "^2", "composer-runtime-api": "^2", "composer/semver": "^1.4 || ^2.0 || ^3.0", "composer/xdebug-handler": "^2.0 || ^3.0", @@ -7319,26 +7551,24 @@ "ext-simplexml": "*", "ext-tokenizer": "*", "felixfbecker/advanced-json-rpc": "^3.1", - "felixfbecker/language-server-protocol": "^1.5.2", + "felixfbecker/language-server-protocol": "^1.5.3", "fidry/cpu-core-counter": "^0.4.1 || ^0.5.1 || ^1.0.0", "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0", - "nikic/php-parser": "^4.17", - "php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0", + "nikic/php-parser": "^5.0.0", + "php": "~8.1.17 || ~8.2.4 || ~8.3.0 || ~8.4.0", "sebastian/diff": "^4.0 || ^5.0 || ^6.0", "spatie/array-to-xml": "^2.17.0 || ^3.0", "symfony/console": "^4.1.6 || ^5.0 || ^6.0 || ^7.0", "symfony/filesystem": "^5.4 || ^6.0 || ^7.0" }, - "conflict": { - "nikic/php-parser": "4.17.0" - }, "provide": { "psalm/psalm": "self.version" }, "require-dev": { - "amphp/phpunit-util": "^2.0", + "amphp/phpunit-util": "^3", "bamarni/composer-bin-plugin": "^1.4", "brianium/paratest": "^6.9", + "dg/bypass-finals": "^1.5", "ext-curl": "*", "mockery/mockery": "^1.5", "nunomaduro/mock-final-classes": "^1.1", @@ -7346,7 +7576,7 @@ "phpstan/phpdoc-parser": "^1.6", "phpunit/phpunit": "^9.6", "psalm/plugin-mockery": "^1.1", - "psalm/plugin-phpunit": "^0.18", + "psalm/plugin-phpunit": "^0.19", "slevomat/coding-standard": "^8.4", "squizlabs/php_codesniffer": "^3.6", "symfony/process": "^4.4 || ^5.0 || ^6.0 || ^7.0" @@ -7369,7 +7599,9 @@ "dev-2.x": "2.x-dev", "dev-3.x": "3.x-dev", "dev-4.x": "4.x-dev", - "dev-master": "5.x-dev" + "dev-5.x": "5.x-dev", + "dev-6.x": "6.x-dev", + "dev-master": "7.x-dev" } }, "autoload": { @@ -7398,7 +7630,7 @@ "issues": "https://github.com/vimeo/psalm/issues", "source": "https://github.com/vimeo/psalm" }, - "time": "2024-09-08T18:53:08+00:00" + "time": "2025-01-26T12:03:19+00:00" }, { "name": "webmozart/assert", @@ -7467,7 +7699,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "~8.2.0 || ~8.3.0" + "php": "~8.2.0 || ~8.3.0 || ~8.4.0" }, "platform-dev": {}, "platform-overrides": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8dc40ff0..f87a328a 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -4,7 +4,7 @@ xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" bootstrap="test/bootstrap.php" colors="true" - convertDeprecationsToExceptions="true" + failOnDeprecation="true" > @@ -14,12 +14,12 @@ ./test/e2e - - + + - ./src + src - + diff --git a/psalm.xml b/psalm.xml index d526e2ab..338dc04d 100644 --- a/psalm.xml +++ b/psalm.xml @@ -32,6 +32,12 @@ + + + + + + diff --git a/src/Formatter/JsonFormatter.php b/src/Formatter/JsonFormatter.php index 19daa775..f9e24c39 100644 --- a/src/Formatter/JsonFormatter.php +++ b/src/Formatter/JsonFormatter.php @@ -9,7 +9,7 @@ use Roave\BackwardCompatibility\Git\CheckedOutRepository; use Symfony\Component\Console\Output\OutputInterface; -use function json_encode; +use function Psl\Json\encode; /** @internal */ final class JsonFormatter implements OutputFormatter @@ -34,6 +34,6 @@ public function write(Changes $changes): void ]; } - $this->output->writeln(json_encode(['errors' => $result])); + $this->output->writeln(encode(['errors' => $result])); } } diff --git a/test/e2e/Command/AssertBackwardsCompatibleTest.php b/test/e2e/Command/AssertBackwardsCompatibleTest.php index 246f1210..aba3eb99 100644 --- a/test/e2e/Command/AssertBackwardsCompatibleTest.php +++ b/test/e2e/Command/AssertBackwardsCompatibleTest.php @@ -4,6 +4,7 @@ namespace RoaveE2ETest\BackwardCompatibility\Command; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\TestCase; use Psl\Env; use Psl\File; @@ -11,7 +12,7 @@ use Psl\Shell; use Psl\Str; -/** @coversNothing */ +#[CoversNothing] final class AssertBackwardsCompatibleTest extends TestCase { private const COMPOSER_MANIFEST = <<<'JSON' diff --git a/test/unit/ChangeTest.php b/test/unit/ChangeTest.php index d60e5013..fe55cf73 100644 --- a/test/unit/ChangeTest.php +++ b/test/unit/ChangeTest.php @@ -5,12 +5,13 @@ namespace RoaveTest\BackwardCompatibility; use Exception; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use function uniqid; -/** @covers \Roave\BackwardCompatibility\Change */ +#[CoversClass(Change::class)] final class ChangeTest extends TestCase { public function testAdded(): void diff --git a/test/unit/ChangesTest.php b/test/unit/ChangesTest.php index 8e2b5283..14cbf02e 100644 --- a/test/unit/ChangesTest.php +++ b/test/unit/ChangesTest.php @@ -5,6 +5,7 @@ namespace RoaveTest\BackwardCompatibility; use Generator; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Psl\Type; use Roave\BackwardCompatibility\Change; @@ -16,7 +17,7 @@ use function serialize; use function unserialize; -/** @covers \Roave\BackwardCompatibility\Changes */ +#[CoversClass(Changes::class)] final class ChangesTest extends TestCase { public function testMergeWith(): void @@ -111,11 +112,10 @@ public function testFromList(): void public function testCount(): void { - $count = random_int(2, 10); + $count = random_int(2, 10); + $changes = Changes::fromList(...array_fill(0, $count, Change::added('foo', true))); - self::assertCount( - $count, - Changes::fromList(...array_fill(0, $count, Change::added('foo', true))), - ); + self::assertSame($count, $changes->count()); + self::assertCount($count, $changes, 'Changes are countable'); } } diff --git a/test/unit/Command/AssertBackwardsCompatibleTest.php b/test/unit/Command/AssertBackwardsCompatibleTest.php index 631d281b..ba7a22ca 100644 --- a/test/unit/Command/AssertBackwardsCompatibleTest.php +++ b/test/unit/Command/AssertBackwardsCompatibleTest.php @@ -5,6 +5,8 @@ namespace RoaveTest\BackwardCompatibility\Command; use ArrayIterator; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Psl\Env; @@ -37,7 +39,7 @@ use function assert; use function is_string; -/** @covers \Roave\BackwardCompatibility\Command\AssertBackwardsCompatible */ +#[CoversClass(AssertBackwardsCompatible::class)] final class AssertBackwardsCompatibleTest extends TestCase { private CheckedOutRepository $sourceRepository; @@ -446,12 +448,12 @@ public function testExecuteWithDefaultRevisionsNotProvidedAndNoDetectedTags(): v $this->compare->execute($this->input, $this->output); } - /** @dataProvider validVersionCollections */ + #[DataProvider('validVersionCollections')] public function testExecuteWithDefaultRevisionsNotProvided(VersionCollection $versions): void { $fromSha = Hash\Context::forAlgorithm(Hash\Algorithm::Sha1)->update('fromRevision')->finalize(); $toSha = Hash\Context::forAlgorithm(Hash\Algorithm::Sha1)->update('toRevision')->finalize(); - $pickedVersion = $this->makeVersion('1.0.0'); + $pickedVersion = self::makeVersion('1.0.0'); $this->input->method('getOption')->willReturnMap([ ['from', null], @@ -531,28 +533,28 @@ public function testExecuteWithDefaultRevisionsNotProvided(VersionCollection $ve } /** @return VersionCollection[][] */ - public function validVersionCollections(): array + public static function validVersionCollections(): array { return [ [ new VersionCollection( - $this->makeVersion('1.0.0'), - $this->makeVersion('1.0.1'), - $this->makeVersion('1.0.2'), + self::makeVersion('1.0.0'), + self::makeVersion('1.0.1'), + self::makeVersion('1.0.2'), ), ], [ new VersionCollection( - $this->makeVersion('1.0.0'), - $this->makeVersion('1.0.1'), + self::makeVersion('1.0.0'), + self::makeVersion('1.0.1'), ), ], - [new VersionCollection($this->makeVersion('1.0.0'))], + [new VersionCollection(self::makeVersion('1.0.0'))], ]; } /** @psalm-param non-empty-string $version */ - private function makeVersion(string $version): Version + private static function makeVersion(string $version): Version { return Type\instance_of(Version::class) ->coerce(Version::fromString($version)); diff --git a/test/unit/CompareClassesTest.php b/test/unit/CompareClassesTest.php index aa1c57ab..b709d495 100644 --- a/test/unit/CompareClassesTest.php +++ b/test/unit/CompareClassesTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -13,7 +14,7 @@ use Roave\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased\InterfaceBased; use Roave\BackwardCompatibility\DetectChanges\BCBreak\TraitBased\TraitBased; -/** @covers \Roave\BackwardCompatibility\CompareClasses */ +#[CoversClass(CompareClasses::class)] final class CompareClassesTest extends TestCase { private static StringReflectorFactory $stringReflectorFactory; diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/AncestorRemovedTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/AncestorRemovedTest.php index e9a8aefa..4c3204af 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/AncestorRemovedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/AncestorRemovedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\AncestorRemoved; @@ -17,14 +19,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\AncestorRemoved */ +#[CoversClass(AncestorRemoved::class)] final class AncestorRemovedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider classesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('classesToBeTested')] public function testDiffs( ReflectionClass $fromClass, ReflectionClass $toClass, @@ -44,7 +43,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function classesToBeTested(): array + public static function classesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); $fromReflector = new DefaultReflector(new StringSourceLocator( diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameAbstractTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameAbstractTest.php index e411b72e..ccbd3ae5 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameAbstractTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameAbstractTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ClassBecameAbstract; @@ -17,14 +19,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ClassBecameAbstract */ +#[CoversClass(ClassBecameAbstract::class)] final class ClassBecameAbstractTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider classesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('classesToBeTested')] public function testDiffs( ReflectionClass $fromClass, ReflectionClass $toClass, @@ -44,7 +43,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function classesToBeTested(): array + public static function classesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); $fromReflector = new DefaultReflector(new StringSourceLocator( diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameFinalTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameFinalTest.php index eef01122..42afa00a 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameFinalTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameFinalTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ClassBecameFinal; @@ -15,13 +17,11 @@ use function array_map; use function iterator_to_array; +#[CoversClass(ClassBecameFinal::class)] final class ClassBecameFinalTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider classesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('classesToBeTested')] public function testDiffs( ReflectionClass $fromClass, ReflectionClass $toClass, @@ -41,7 +41,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function classesToBeTested(): array + public static function classesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); $fromReflector = new DefaultReflector(new StringSourceLocator( diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameInterfaceTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameInterfaceTest.php index eb06a61f..42d21b5d 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameInterfaceTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameInterfaceTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ClassBecameInterface; @@ -17,13 +19,11 @@ use function array_map; use function iterator_to_array; +#[CoversClass(ClassBecameInterface::class)] final class ClassBecameInterfaceTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider classesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('classesToBeTested')] public function testDiffs( ReflectionClass $fromClass, ReflectionClass $toClass, @@ -43,7 +43,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function classesToBeTested(): array + public static function classesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); $fromReflector = new DefaultReflector(new StringSourceLocator( diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameInternalTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameInternalTest.php index eedbf069..be3644eb 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameInternalTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameInternalTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ClassBecameInternal; @@ -15,14 +17,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ClassBecameInternal */ +#[CoversClass(ClassBecameInternal::class)] final class ClassBecameInternalTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider classesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('classesToBeTested')] public function testDiffs( ReflectionClass $fromClass, ReflectionClass $toClass, @@ -42,7 +41,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function classesToBeTested(): array + public static function classesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); $fromReflector = new DefaultReflector(new StringSourceLocator( diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameTraitTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameTraitTest.php index e7b78032..a2afd2cc 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameTraitTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/ClassBecameTraitTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ClassBecameTrait; @@ -17,14 +19,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ClassBecameTrait */ +#[CoversClass(ClassBecameTrait::class)] final class ClassBecameTraitTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider classesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('classesToBeTested')] public function testDiffs( ReflectionClass $fromClass, ReflectionClass $toClass, @@ -44,7 +43,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function classesToBeTested(): array + public static function classesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); $fromReflector = new DefaultReflector(new StringSourceLocator( diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/ConstantChangedTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/ConstantChangedTest.php index a362a41c..5bd527ed 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/ConstantChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/ConstantChangedTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -15,7 +16,7 @@ use Roave\BetterReflection\SourceLocator\Type\StringSourceLocator; use RoaveTest\BackwardCompatibility\Assertion; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ConstantChanged */ +#[CoversClass(ConstantChanged::class)] final class ConstantChangedTest extends TestCase { public function testWillDetectChangesInConstants(): void diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/ConstantRemovedTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/ConstantRemovedTest.php index 1ffaf8a2..d39651ad 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/ConstantRemovedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/ConstantRemovedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ConstantRemoved; @@ -15,13 +17,11 @@ use function array_map; use function iterator_to_array; +#[CoversClass(ConstantRemoved::class)] final class ConstantRemovedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider classesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('classesToBeTested')] public function testDiffs( ReflectionClass $fromClass, ReflectionClass $toClass, @@ -41,7 +41,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function classesToBeTested(): array + public static function classesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/EnumCasesChangedTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/EnumCasesChangedTest.php index 07ed807c..9d8963bf 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/EnumCasesChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/EnumCasesChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\EnumCasesChanged; @@ -16,14 +18,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\EnumCasesChanged */ +#[CoversClass(EnumCasesChanged::class)] final class EnumCasesChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider enumsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('enumsToBeTested')] public function testDiffs( ReflectionClass $fromEnum, ReflectionClass $toEnum, @@ -69,7 +68,7 @@ public function testReturnsEnumBecameClassError(): void * @return array>> * @psalm-return array}> */ - public function enumsToBeTested(): array + public static function enumsToBeTested(): array { $locator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/ExcludeAnonymousClassesTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/ExcludeAnonymousClassesTest.php index 52df018b..ea96ccaf 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/ExcludeAnonymousClassesTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/ExcludeAnonymousClassesTest.php @@ -4,7 +4,9 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; +use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ClassBased; use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ExcludeAnonymousClasses; @@ -15,6 +17,7 @@ use function reset; +#[CoversClass(ExcludeAnonymousClasses::class)] final class ExcludeAnonymousClassesTest extends TestCase { public function testNormalClassesAreNotExcluded(): void @@ -31,14 +34,17 @@ class ANormalClass {} )); $fromReflection = $reflector->reflectClass('ANormalClass'); $toReflection = $reflector->reflectClass('ANormalClass'); + $changes = Changes::fromList( + Change::added('TEST'), + ); $check = $this->createMock(ClassBased::class); $check->expects(self::once()) ->method('__invoke') ->with($fromReflection, $toReflection) - ->willReturn(Changes::empty()); + ->willReturn($changes); - (new ExcludeAnonymousClasses($check))($fromReflection, $toReflection); + self::assertEquals($changes, (new ExcludeAnonymousClasses($check))($fromReflection, $toReflection)); } public function testAnonymousClassesAreExcluded(): void @@ -61,6 +67,10 @@ public function testAnonymousClassesAreExcluded(): void $check = $this->createMock(ClassBased::class); $check->expects(self::never())->method('__invoke'); - (new ExcludeAnonymousClasses($check))($anonymousClassReflection, $anonymousClassReflection); + self::assertEquals( + 0, + (new ExcludeAnonymousClasses($check))($anonymousClassReflection, $anonymousClassReflection) + ->count(), + ); } } diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/ExcludeInternalClassTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/ExcludeInternalClassTest.php index 3097aeeb..b3536754 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/ExcludeInternalClassTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/ExcludeInternalClassTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -13,7 +14,7 @@ use Roave\BetterReflection\Reflector\DefaultReflector; use Roave\BetterReflection\SourceLocator\Type\StringSourceLocator; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\ExcludeInternalClass */ +#[CoversClass(ExcludeInternalClass::class)] final class ExcludeInternalClassTest extends TestCase { public function testNormalClassesAreNotExcluded(): void diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/FinalClassChangedTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/FinalClassChangedTest.php index c5d0e1e4..3badf376 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/FinalClassChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/FinalClassChangedTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -14,7 +15,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\FinalClassChanged */ +#[CoversClass(FinalClassChanged::class)] final class FinalClassChangedTest extends TestCase { /** @var ClassBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/MethodChangedTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/MethodChangedTest.php index fec8124a..d92cef38 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/MethodChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/MethodChangedTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -17,7 +18,7 @@ use function strtolower; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\MethodChanged */ +#[CoversClass(MethodChanged::class)] final class MethodChangedTest extends TestCase { public function testWillDetectChangesInMethods(): void diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/MethodRemovedTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/MethodRemovedTest.php index aca411c1..2e22f6fd 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/MethodRemovedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/MethodRemovedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\MethodRemoved; @@ -15,13 +17,11 @@ use function array_map; use function iterator_to_array; +#[CoversClass(MethodRemoved::class)] final class MethodRemovedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider classesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('classesToBeTested')] public function testDiffs( ReflectionClass $fromClass, ReflectionClass $toClass, @@ -41,7 +41,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function classesToBeTested(): array + public static function classesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/MultipleChecksOnAClassTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/MultipleChecksOnAClassTest.php index ffc7084c..1d296a7a 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/MultipleChecksOnAClassTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/MultipleChecksOnAClassTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -12,7 +13,7 @@ use Roave\BetterReflection\Reflection\ReflectionClass; use RoaveTest\BackwardCompatibility\Assertion; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\MultipleChecksOnAClass */ +#[CoversClass(MultipleChecksOnAClass::class)] final class MultipleChecksOnAClassTest extends TestCase { public function testChecksAllGivenCheckers(): void diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/OpenClassChangedTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/OpenClassChangedTest.php index 87c68e09..ffc5d4f6 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/OpenClassChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/OpenClassChangedTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -14,7 +15,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\OpenClassChanged */ +#[CoversClass(OpenClassChanged::class)] final class OpenClassChangedTest extends TestCase { /** @var ClassBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/PropertyChangedTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/PropertyChangedTest.php index ff976cc2..90038703 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/PropertyChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/PropertyChangedTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -15,7 +16,7 @@ use Roave\BetterReflection\SourceLocator\Type\StringSourceLocator; use RoaveTest\BackwardCompatibility\Assertion; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\PropertyChanged */ +#[CoversClass(PropertyChanged::class)] final class PropertyChangedTest extends TestCase { public function testWillDetectChangesInProperties(): void diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/PropertyRemovedTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/PropertyRemovedTest.php index 447047b8..9d0f7950 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/PropertyRemovedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/PropertyRemovedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\PropertyRemoved; @@ -16,13 +18,11 @@ use function array_map; use function iterator_to_array; +#[CoversClass(PropertyRemoved::class)] final class PropertyRemovedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider classesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('classesToBeTested')] public function testDiffs( ReflectionClass $fromClass, ReflectionClass $toClass, @@ -42,7 +42,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function classesToBeTested(): array + public static function classesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/ClassBased/SkipClassBasedErrorsTest.php b/test/unit/DetectChanges/BCBreak/ClassBased/SkipClassBasedErrorsTest.php index dfeb4854..21835907 100644 --- a/test/unit/DetectChanges/BCBreak/ClassBased/SkipClassBasedErrorsTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassBased/SkipClassBasedErrorsTest.php @@ -5,6 +5,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassBased; use Exception; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -15,7 +16,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassBased\SkipClassBasedErrors */ +#[CoversClass(SkipClassBasedErrors::class)] final class SkipClassBasedErrorsTest extends TestCase { /** @var ClassBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/ClassConstantBased/ClassConstantValueChangedTest.php b/test/unit/DetectChanges/BCBreak/ClassConstantBased/ClassConstantValueChangedTest.php index 82a993e0..823b051e 100644 --- a/test/unit/DetectChanges/BCBreak/ClassConstantBased/ClassConstantValueChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassConstantBased/ClassConstantValueChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassConstantBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Psl\Type; use Roave\BackwardCompatibility\Change; @@ -18,14 +20,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassConstantBased\ClassConstantValueChanged */ +#[CoversClass(ClassConstantValueChanged::class)] final class ClassConstantValueChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider constantsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('constantsToBeTested')] public function testDiffs( ReflectionClassConstant $fromConstant, ReflectionClassConstant $toConstant, @@ -48,7 +47,7 @@ public function testDiffs( * 2: list * }> */ - public function constantsToBeTested(): array + public static function constantsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/ClassConstantBased/ClassConstantVisibilityReducedTest.php b/test/unit/DetectChanges/BCBreak/ClassConstantBased/ClassConstantVisibilityReducedTest.php index 7899f4cb..a9b9e062 100644 --- a/test/unit/DetectChanges/BCBreak/ClassConstantBased/ClassConstantVisibilityReducedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassConstantBased/ClassConstantVisibilityReducedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassConstantBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Psl\Type; use Roave\BackwardCompatibility\Change; @@ -18,14 +20,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassConstantBased\ClassConstantVisibilityReduced */ +#[CoversClass(ClassConstantVisibilityReduced::class)] final class ClassConstantVisibilityReducedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider constantsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('constantsToBeTested')] public function testDiffs( ReflectionClassConstant $fromConstant, ReflectionClassConstant $toConstant, @@ -48,7 +47,7 @@ public function testDiffs( * 2: list * }> */ - public function constantsToBeTested(): array + public static function constantsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/ClassConstantBased/MultipleChecksOnAClassConstantTest.php b/test/unit/DetectChanges/BCBreak/ClassConstantBased/MultipleChecksOnAClassConstantTest.php index 5487bacd..e4c41bd9 100644 --- a/test/unit/DetectChanges/BCBreak/ClassConstantBased/MultipleChecksOnAClassConstantTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassConstantBased/MultipleChecksOnAClassConstantTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassConstantBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -13,7 +14,7 @@ use Roave\BetterReflection\Reflection\ReflectionClassConstant; use RoaveTest\BackwardCompatibility\Assertion; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassConstantBased\MultipleChecksOnAClassConstant */ +#[CoversClass(MultipleChecksOnAClassConstant::class)] final class MultipleChecksOnAClassConstantTest extends TestCase { public function testChecksAllGivenCheckers(): void diff --git a/test/unit/DetectChanges/BCBreak/ClassConstantBased/OnlyProtectedClassConstantChangedTest.php b/test/unit/DetectChanges/BCBreak/ClassConstantBased/OnlyProtectedClassConstantChangedTest.php index a9b0a6bd..76cb5d47 100644 --- a/test/unit/DetectChanges/BCBreak/ClassConstantBased/OnlyProtectedClassConstantChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassConstantBased/OnlyProtectedClassConstantChangedTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassConstantBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -14,7 +15,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassConstantBased\OnlyProtectedClassConstantChanged */ +#[CoversClass(OnlyProtectedClassConstantChanged::class)] final class OnlyProtectedClassConstantChangedTest extends TestCase { /** @var ClassConstantBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/ClassConstantBased/OnlyPublicClassConstantChangedTest.php b/test/unit/DetectChanges/BCBreak/ClassConstantBased/OnlyPublicClassConstantChangedTest.php index 09f8c7a2..11590a22 100644 --- a/test/unit/DetectChanges/BCBreak/ClassConstantBased/OnlyPublicClassConstantChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassConstantBased/OnlyPublicClassConstantChangedTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassConstantBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -14,7 +15,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassConstantBased\OnlyPublicClassConstantChanged */ +#[CoversClass(OnlyPublicClassConstantChanged::class)] final class OnlyPublicClassConstantChangedTest extends TestCase { /** @var ClassConstantBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/ClassConstantBased/SkipClassConstantBasedErrorsTest.php b/test/unit/DetectChanges/BCBreak/ClassConstantBased/SkipClassConstantBasedErrorsTest.php index 136ac975..359a529d 100644 --- a/test/unit/DetectChanges/BCBreak/ClassConstantBased/SkipClassConstantBasedErrorsTest.php +++ b/test/unit/DetectChanges/BCBreak/ClassConstantBased/SkipClassConstantBasedErrorsTest.php @@ -5,6 +5,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\ClassConstantBased; use Exception; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -15,7 +16,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\ClassConstantBased\SkipClassConstantBasedErrors */ +#[CoversClass(SkipClassConstantBasedErrors::class)] final class SkipClassConstantBasedErrorsTest extends TestCase { /** @var ClassConstantBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/FunctionBased/ExcludeInternalFunctionTest.php b/test/unit/DetectChanges/BCBreak/FunctionBased/ExcludeInternalFunctionTest.php index 1977ab01..9ee8c44d 100644 --- a/test/unit/DetectChanges/BCBreak/FunctionBased/ExcludeInternalFunctionTest.php +++ b/test/unit/DetectChanges/BCBreak/FunctionBased/ExcludeInternalFunctionTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -13,7 +14,7 @@ use Roave\BetterReflection\Reflector\DefaultReflector; use Roave\BetterReflection\SourceLocator\Type\StringSourceLocator; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ExcludeInternalFunction */ +#[CoversClass(ExcludeInternalFunction::class)] final class ExcludeInternalFunctionTest extends TestCase { public function testNormalFunctionsAreNotExcluded(): void diff --git a/test/unit/DetectChanges/BCBreak/FunctionBased/FunctionBecameInternalTest.php b/test/unit/DetectChanges/BCBreak/FunctionBased/FunctionBecameInternalTest.php index c203619c..4d12a6b7 100644 --- a/test/unit/DetectChanges/BCBreak/FunctionBased/FunctionBecameInternalTest.php +++ b/test/unit/DetectChanges/BCBreak/FunctionBased/FunctionBecameInternalTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\FunctionBecameInternal; @@ -18,14 +20,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\FunctionBecameInternal */ +#[CoversClass(FunctionBecameInternal::class)] final class FunctionBecameInternalTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider functionsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('functionsToBeTested')] public function testDiffs( ReflectionMethod|ReflectionFunction $fromFunction, ReflectionMethod|ReflectionFunction $toFunction, @@ -48,7 +47,7 @@ public function testDiffs( * 2: list * }> */ - public function functionsToBeTested(): array + public static function functionsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/FunctionBased/MultipleChecksOnAFunctionTest.php b/test/unit/DetectChanges/BCBreak/FunctionBased/MultipleChecksOnAFunctionTest.php index cf216a22..f993923f 100644 --- a/test/unit/DetectChanges/BCBreak/FunctionBased/MultipleChecksOnAFunctionTest.php +++ b/test/unit/DetectChanges/BCBreak/FunctionBased/MultipleChecksOnAFunctionTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -12,7 +13,7 @@ use Roave\BetterReflection\Reflection\ReflectionFunction; use RoaveTest\BackwardCompatibility\Assertion; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\MultipleChecksOnAFunction */ +#[CoversClass(MultipleChecksOnAFunction::class)] final class MultipleChecksOnAFunctionTest extends TestCase { public function testChecksAllGivenCheckers(): void diff --git a/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterByReferenceChangedTest.php b/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterByReferenceChangedTest.php index 1b227920..fadc014d 100644 --- a/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterByReferenceChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterByReferenceChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterByReferenceChanged; @@ -21,14 +23,11 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterByReferenceChanged */ +#[CoversClass(ParameterByReferenceChanged::class)] final class ParameterByReferenceChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider functionsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('functionsToBeTested')] public function testDiffs( ReflectionMethod|ReflectionFunction $fromFunction, ReflectionMethod|ReflectionFunction $toFunction, @@ -51,7 +50,7 @@ public function testDiffs( * 2: list * }> */ - public function functionsToBeTested(): array + public static function functionsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterDefaultValueChangedTest.php b/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterDefaultValueChangedTest.php index 47307df3..ce7e0e54 100644 --- a/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterDefaultValueChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterDefaultValueChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterDefaultValueChanged; @@ -25,14 +27,11 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterDefaultValueChanged */ +#[CoversClass(ParameterDefaultValueChanged::class)] final class ParameterDefaultValueChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider functionsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('functionsToBeTested')] public function testDiffs( ReflectionMethod|ReflectionFunction $fromFunction, ReflectionMethod|ReflectionFunction $toFunction, @@ -95,7 +94,7 @@ public function methodWithDefaultValue($param = SOME_CONSTANT + 1) {} * 2: list * }> */ - public function functionsToBeTested(): array + public static function functionsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); $sourceStubber = (new BetterReflection())->sourceStubber(); diff --git a/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterNameChangedTest.php b/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterNameChangedTest.php index 0c012fd8..2afab392 100644 --- a/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterNameChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterNameChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterNameChanged; @@ -19,14 +21,11 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterNameChanged */ +#[CoversClass(ParameterNameChanged::class)] final class ParameterNameChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider functionsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('functionsToBeTested')] public function testDiffs( ReflectionMethod|ReflectionFunction $fromFunction, ReflectionMethod|ReflectionFunction $toFunction, @@ -50,7 +49,7 @@ public function testDiffs( * 2: list * }> */ - public function functionsToBeTested(): array + public static function functionsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterTypeChangedTest.php b/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterTypeChangedTest.php index f12dfe33..2895a87d 100644 --- a/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterTypeChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterTypeChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterTypeChanged; @@ -21,14 +23,11 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterTypeChanged */ +#[CoversClass(ParameterTypeChanged::class)] final class ParameterTypeChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider functionsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('functionsToBeTested')] public function testDiffs( ReflectionMethod|ReflectionFunction $fromFunction, ReflectionMethod|ReflectionFunction $toFunction, @@ -51,7 +50,7 @@ public function testDiffs( * 2: list * }> */ - public function functionsToBeTested(): array + public static function functionsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterTypeContravarianceChangedTest.php b/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterTypeContravarianceChangedTest.php index 01e902ff..b9ace510 100644 --- a/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterTypeContravarianceChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/FunctionBased/ParameterTypeContravarianceChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterTypeContravarianceChanged; @@ -22,14 +24,11 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ParameterTypeContravarianceChanged */ +#[CoversClass(ParameterTypeContravarianceChanged::class)] final class ParameterTypeContravarianceChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider functionsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('functionsToBeTested')] public function testDiffs( ReflectionMethod|ReflectionFunction $fromFunction, ReflectionMethod|ReflectionFunction $toFunction, @@ -52,7 +51,7 @@ public function testDiffs( * 2: list * }> */ - public function functionsToBeTested(): array + public static function functionsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/FunctionBased/RequiredParameterAmountIncreasedTest.php b/test/unit/DetectChanges/BCBreak/FunctionBased/RequiredParameterAmountIncreasedTest.php index 98535e45..f593444e 100644 --- a/test/unit/DetectChanges/BCBreak/FunctionBased/RequiredParameterAmountIncreasedTest.php +++ b/test/unit/DetectChanges/BCBreak/FunctionBased/RequiredParameterAmountIncreasedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\RequiredParameterAmountIncreased; @@ -21,14 +23,11 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\RequiredParameterAmountIncreased */ +#[CoversClass(RequiredParameterAmountIncreased::class)] final class RequiredParameterAmountIncreasedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider functionsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('functionsToBeTested')] public function testDiffs( ReflectionMethod|ReflectionFunction $fromFunction, ReflectionMethod|ReflectionFunction $toFunction, @@ -51,7 +50,7 @@ public function testDiffs( * 2: list * }> */ - public function functionsToBeTested(): array + public static function functionsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/FunctionBased/ReturnTypeByReferenceChangedTest.php b/test/unit/DetectChanges/BCBreak/FunctionBased/ReturnTypeByReferenceChangedTest.php index ee38b00d..0a880bb3 100644 --- a/test/unit/DetectChanges/BCBreak/FunctionBased/ReturnTypeByReferenceChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/FunctionBased/ReturnTypeByReferenceChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ReturnTypeByReferenceChanged; @@ -21,14 +23,11 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ReturnTypeByReferenceChanged */ +#[CoversClass(ReturnTypeByReferenceChanged::class)] final class ReturnTypeByReferenceChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider functionsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('functionsToBeTested')] public function testDiffs( ReflectionMethod|ReflectionFunction $fromFunction, ReflectionMethod|ReflectionFunction $toFunction, @@ -51,7 +50,7 @@ public function testDiffs( * 2: list * }> */ - public function functionsToBeTested(): array + public static function functionsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/FunctionBased/ReturnTypeChangedTest.php b/test/unit/DetectChanges/BCBreak/FunctionBased/ReturnTypeChangedTest.php index c9ecdb76..81584ae6 100644 --- a/test/unit/DetectChanges/BCBreak/FunctionBased/ReturnTypeChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/FunctionBased/ReturnTypeChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ReturnTypeChanged; @@ -21,14 +23,11 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ReturnTypeChanged */ +#[CoversClass(ReturnTypeChanged::class)] final class ReturnTypeChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider functionsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('functionsToBeTested')] public function testDiffs( ReflectionMethod|ReflectionFunction $fromFunction, ReflectionMethod|ReflectionFunction $toFunction, @@ -51,7 +50,7 @@ public function testDiffs( * 2: list * }> */ - public function functionsToBeTested(): array + public static function functionsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/FunctionBased/ReturnTypeCovarianceChangedTest.php b/test/unit/DetectChanges/BCBreak/FunctionBased/ReturnTypeCovarianceChangedTest.php index 1caa556e..0abe263a 100644 --- a/test/unit/DetectChanges/BCBreak/FunctionBased/ReturnTypeCovarianceChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/FunctionBased/ReturnTypeCovarianceChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ReturnTypeCovarianceChanged; @@ -22,14 +24,11 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\ReturnTypeCovarianceChanged */ +#[CoversClass(ReturnTypeCovarianceChanged::class)] final class ReturnTypeCovarianceChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider functionsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('functionsToBeTested')] public function testDiffs( ReflectionMethod|ReflectionFunction $fromFunction, ReflectionMethod|ReflectionFunction $toFunction, @@ -52,7 +51,7 @@ public function testDiffs( * 2: list * }> */ - public function functionsToBeTested(): array + public static function functionsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/FunctionBased/SkipFunctionBasedErrorsTest.php b/test/unit/DetectChanges/BCBreak/FunctionBased/SkipFunctionBasedErrorsTest.php index 0c0fcaf4..a457abf5 100644 --- a/test/unit/DetectChanges/BCBreak/FunctionBased/SkipFunctionBasedErrorsTest.php +++ b/test/unit/DetectChanges/BCBreak/FunctionBased/SkipFunctionBasedErrorsTest.php @@ -5,6 +5,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased; use Exception; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -15,7 +16,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased\SkipFunctionBasedErrors */ +#[CoversClass(SkipFunctionBasedErrors::class)] final class SkipFunctionBasedErrorsTest extends TestCase { /** @var FunctionBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/InterfaceBased/AncestorRemovedTest.php b/test/unit/DetectChanges/BCBreak/InterfaceBased/AncestorRemovedTest.php index 7e4326ca..2c58285b 100644 --- a/test/unit/DetectChanges/BCBreak/InterfaceBased/AncestorRemovedTest.php +++ b/test/unit/DetectChanges/BCBreak/InterfaceBased/AncestorRemovedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased\AncestorRemoved; @@ -17,14 +19,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased\AncestorRemoved */ +#[CoversClass(AncestorRemoved::class)] final class AncestorRemovedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider interfacesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('interfacesToBeTested')] public function testDiffs( ReflectionClass $fromInterface, ReflectionClass $toInterace, @@ -44,7 +43,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function interfacesToBeTested(): array + public static function interfacesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); $fromReflector = new DefaultReflector(new StringSourceLocator( diff --git a/test/unit/DetectChanges/BCBreak/InterfaceBased/ExcludeInternalInterfaceTest.php b/test/unit/DetectChanges/BCBreak/InterfaceBased/ExcludeInternalInterfaceTest.php index cf1d8b56..03dce277 100644 --- a/test/unit/DetectChanges/BCBreak/InterfaceBased/ExcludeInternalInterfaceTest.php +++ b/test/unit/DetectChanges/BCBreak/InterfaceBased/ExcludeInternalInterfaceTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -13,7 +14,7 @@ use Roave\BetterReflection\Reflector\DefaultReflector; use Roave\BetterReflection\SourceLocator\Type\StringSourceLocator; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased\ExcludeInternalInterface */ +#[CoversClass(ExcludeInternalInterface::class)] final class ExcludeInternalInterfaceTest extends TestCase { public function testNormalInterfacesAreNotExcluded(): void diff --git a/test/unit/DetectChanges/BCBreak/InterfaceBased/InterfaceBecameClassTest.php b/test/unit/DetectChanges/BCBreak/InterfaceBased/InterfaceBecameClassTest.php index 9067174d..9044e1de 100644 --- a/test/unit/DetectChanges/BCBreak/InterfaceBased/InterfaceBecameClassTest.php +++ b/test/unit/DetectChanges/BCBreak/InterfaceBased/InterfaceBecameClassTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased\InterfaceBecameClass; @@ -17,13 +19,11 @@ use function array_map; use function iterator_to_array; +#[CoversClass(InterfaceBecameClass::class)] final class InterfaceBecameClassTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider classesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('classesToBeTested')] public function testDiffs( ReflectionClass $fromClass, ReflectionClass $toClass, @@ -43,7 +43,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function classesToBeTested(): array + public static function classesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); $fromReflector = new DefaultReflector(new StringSourceLocator( diff --git a/test/unit/DetectChanges/BCBreak/InterfaceBased/InterfaceBecameTraitTest.php b/test/unit/DetectChanges/BCBreak/InterfaceBased/InterfaceBecameTraitTest.php index 2f7d1366..13eb96c3 100644 --- a/test/unit/DetectChanges/BCBreak/InterfaceBased/InterfaceBecameTraitTest.php +++ b/test/unit/DetectChanges/BCBreak/InterfaceBased/InterfaceBecameTraitTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased\InterfaceBecameTrait; @@ -17,13 +19,11 @@ use function array_map; use function iterator_to_array; +#[CoversClass(InterfaceBecameTrait::class)] final class InterfaceBecameTraitTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider classesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('classesToBeTested')] public function testDiffs( ReflectionClass $fromClass, ReflectionClass $toClass, @@ -43,7 +43,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function classesToBeTested(): array + public static function classesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); $fromReflector = new DefaultReflector(new StringSourceLocator( diff --git a/test/unit/DetectChanges/BCBreak/InterfaceBased/MethodAddedTest.php b/test/unit/DetectChanges/BCBreak/InterfaceBased/MethodAddedTest.php index 92213a57..737eb32f 100644 --- a/test/unit/DetectChanges/BCBreak/InterfaceBased/MethodAddedTest.php +++ b/test/unit/DetectChanges/BCBreak/InterfaceBased/MethodAddedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased\MethodAdded; @@ -17,13 +19,11 @@ use function array_map; use function iterator_to_array; +#[CoversClass(MethodAdded::class)] final class MethodAddedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider interfacesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('interfacesToBeTested')] public function testDiffs( ReflectionClass $fromInterface, ReflectionClass $toInterface, @@ -43,7 +43,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function interfacesToBeTested(): array + public static function interfacesToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/InterfaceBased/MultipleChecksOnAnInterfaceTest.php b/test/unit/DetectChanges/BCBreak/InterfaceBased/MultipleChecksOnAnInterfaceTest.php index ce62b1a4..e56a27c0 100644 --- a/test/unit/DetectChanges/BCBreak/InterfaceBased/MultipleChecksOnAnInterfaceTest.php +++ b/test/unit/DetectChanges/BCBreak/InterfaceBased/MultipleChecksOnAnInterfaceTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -12,7 +13,7 @@ use Roave\BetterReflection\Reflection\ReflectionClass; use RoaveTest\BackwardCompatibility\Assertion; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased\MultipleChecksOnAnInterface */ +#[CoversClass(MultipleChecksOnAnInterface::class)] final class MultipleChecksOnAnInterfaceTest extends TestCase { public function testChecksAllGivenCheckers(): void diff --git a/test/unit/DetectChanges/BCBreak/InterfaceBased/SkipInterfaceBasedErrorsTest.php b/test/unit/DetectChanges/BCBreak/InterfaceBased/SkipInterfaceBasedErrorsTest.php index 46546545..96413b3d 100644 --- a/test/unit/DetectChanges/BCBreak/InterfaceBased/SkipInterfaceBasedErrorsTest.php +++ b/test/unit/DetectChanges/BCBreak/InterfaceBased/SkipInterfaceBasedErrorsTest.php @@ -5,6 +5,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased; use Exception; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -15,7 +16,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased\SkipInterfaceBasedErrors */ +#[CoversClass(SkipInterfaceBasedErrors::class)] final class SkipInterfaceBasedErrorsTest extends TestCase { /** @var InterfaceBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/InterfaceBased/UseClassBasedChecksOnAnInterfaceTest.php b/test/unit/DetectChanges/BCBreak/InterfaceBased/UseClassBasedChecksOnAnInterfaceTest.php index a08dfadb..ffae7448 100644 --- a/test/unit/DetectChanges/BCBreak/InterfaceBased/UseClassBasedChecksOnAnInterfaceTest.php +++ b/test/unit/DetectChanges/BCBreak/InterfaceBased/UseClassBasedChecksOnAnInterfaceTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -13,7 +14,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\InterfaceBased\UseClassBasedChecksOnAnInterface */ +#[CoversClass(UseClassBasedChecksOnAnInterface::class)] final class UseClassBasedChecksOnAnInterfaceTest extends TestCase { public function testCompare(): void diff --git a/test/unit/DetectChanges/BCBreak/MethodBased/AccessibleMethodChangeTest.php b/test/unit/DetectChanges/BCBreak/MethodBased/AccessibleMethodChangeTest.php index 0f4ba615..7c3208c2 100644 --- a/test/unit/DetectChanges/BCBreak/MethodBased/AccessibleMethodChangeTest.php +++ b/test/unit/DetectChanges/BCBreak/MethodBased/AccessibleMethodChangeTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\MethodBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -14,7 +15,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\AccessibleMethodChange */ +#[CoversClass(AccessibleMethodChange::class)] final class AccessibleMethodChangeTest extends TestCase { /** @var MethodBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/MethodBased/ExcludeInternalMethodTest.php b/test/unit/DetectChanges/BCBreak/MethodBased/ExcludeInternalMethodTest.php index 97ac797d..6e94ab63 100644 --- a/test/unit/DetectChanges/BCBreak/MethodBased/ExcludeInternalMethodTest.php +++ b/test/unit/DetectChanges/BCBreak/MethodBased/ExcludeInternalMethodTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\MethodBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -15,7 +16,7 @@ use function assert; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\ExcludeInternalMethod */ +#[CoversClass(ExcludeInternalMethod::class)] final class ExcludeInternalMethodTest extends TestCase { public function testNormalMethodsAreNotExcluded(): void diff --git a/test/unit/DetectChanges/BCBreak/MethodBased/MethodBecameFinalTest.php b/test/unit/DetectChanges/BCBreak/MethodBased/MethodBecameFinalTest.php index 1d126d05..c3e769b4 100644 --- a/test/unit/DetectChanges/BCBreak/MethodBased/MethodBecameFinalTest.php +++ b/test/unit/DetectChanges/BCBreak/MethodBased/MethodBecameFinalTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\MethodBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\MethodBecameFinal; @@ -19,14 +21,11 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\MethodBecameFinal */ +#[CoversClass(MethodBecameFinal::class)] final class MethodBecameFinalTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider propertiesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('methodsToBeTested')] public function testDiffs( ReflectionMethod $fromMethod, ReflectionMethod $toMethod, @@ -46,7 +45,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function propertiesToBeTested(): array + public static function methodsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/MethodBased/MethodConcretenessChangedTest.php b/test/unit/DetectChanges/BCBreak/MethodBased/MethodConcretenessChangedTest.php index 4eba54c8..df569acb 100644 --- a/test/unit/DetectChanges/BCBreak/MethodBased/MethodConcretenessChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/MethodBased/MethodConcretenessChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\MethodBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\MethodConcretenessChanged; @@ -19,14 +21,11 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\MethodConcretenessChanged */ +#[CoversClass(MethodConcretenessChanged::class)] final class MethodConcretenessChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider propertiesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('methodsToBeTested')] public function testDiffs( ReflectionMethod $fromMethod, ReflectionMethod $toMethod, @@ -46,7 +45,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function propertiesToBeTested(): array + public static function methodsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/MethodBased/MethodFunctionDefinitionChangedTest.php b/test/unit/DetectChanges/BCBreak/MethodBased/MethodFunctionDefinitionChangedTest.php index 71cebbae..808cd9c6 100644 --- a/test/unit/DetectChanges/BCBreak/MethodBased/MethodFunctionDefinitionChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/MethodBased/MethodFunctionDefinitionChangedTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\MethodBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -15,7 +16,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\MethodFunctionDefinitionChanged */ +#[CoversClass(MethodFunctionDefinitionChanged::class)] final class MethodFunctionDefinitionChangedTest extends TestCase { /** @var FunctionBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/MethodBased/MethodParameterAddedTest.php b/test/unit/DetectChanges/BCBreak/MethodBased/MethodParameterAddedTest.php index 81fe85c4..0ef64e08 100644 --- a/test/unit/DetectChanges/BCBreak/MethodBased/MethodParameterAddedTest.php +++ b/test/unit/DetectChanges/BCBreak/MethodBased/MethodParameterAddedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\MethodBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -21,7 +23,7 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\MethodParameterAdded */ +#[CoversClass(MethodParameterAdded::class)] final class MethodParameterAddedTest extends TestCase { private MethodBased $methodCheck; @@ -73,11 +75,8 @@ public function testWillSkipCheckingPrivateMethodsOnFinalClasses(): void self::assertEquals(Changes::empty(), ($this->methodCheck)($from, $to)); } - /** - * @param string[] $expectedMessages - * - * @dataProvider methodsToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('methodsToBeTested')] public function testDiffs( ReflectionMethod $fromMethod, ReflectionMethod $toMethod, @@ -94,7 +93,7 @@ public function testDiffs( } /** @return array}> */ - public function methodsToBeTested(): array + public static function methodsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/MethodBased/MethodScopeChangedTest.php b/test/unit/DetectChanges/BCBreak/MethodBased/MethodScopeChangedTest.php index 73c6b427..05d1a533 100644 --- a/test/unit/DetectChanges/BCBreak/MethodBased/MethodScopeChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/MethodBased/MethodScopeChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\MethodBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\MethodScopeChanged; @@ -19,14 +21,11 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\MethodScopeChanged */ +#[CoversClass(MethodScopeChanged::class)] final class MethodScopeChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider propertiesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('methodsToBeTested')] public function testDiffs( ReflectionMethod $fromMethod, ReflectionMethod $toMethod, @@ -43,7 +42,7 @@ public function testDiffs( } /** @return array}> */ - public function propertiesToBeTested(): array + public static function methodsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/MethodBased/MethodVisibilityReducedTest.php b/test/unit/DetectChanges/BCBreak/MethodBased/MethodVisibilityReducedTest.php index f4f91b5f..d97e61e7 100644 --- a/test/unit/DetectChanges/BCBreak/MethodBased/MethodVisibilityReducedTest.php +++ b/test/unit/DetectChanges/BCBreak/MethodBased/MethodVisibilityReducedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\MethodBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\MethodVisibilityReduced; @@ -19,14 +21,11 @@ use function assert; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\MethodVisibilityReduced */ +#[CoversClass(MethodVisibilityReduced::class)] final class MethodVisibilityReducedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider propertiesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('methodsToBeTested')] public function testDiffs( ReflectionMethod $fromMethod, ReflectionMethod $toMethod, @@ -46,7 +45,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function propertiesToBeTested(): array + public static function methodsToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/MethodBased/MultipleChecksOnAMethodTest.php b/test/unit/DetectChanges/BCBreak/MethodBased/MultipleChecksOnAMethodTest.php index b6dff816..a74ef142 100644 --- a/test/unit/DetectChanges/BCBreak/MethodBased/MultipleChecksOnAMethodTest.php +++ b/test/unit/DetectChanges/BCBreak/MethodBased/MultipleChecksOnAMethodTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\MethodBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -12,7 +13,7 @@ use Roave\BetterReflection\Reflection\ReflectionMethod; use RoaveTest\BackwardCompatibility\Assertion; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\MultipleChecksOnAMethod */ +#[CoversClass(MultipleChecksOnAMethod::class)] final class MultipleChecksOnAMethodTest extends TestCase { public function testChecksAllGivenCheckers(): void diff --git a/test/unit/DetectChanges/BCBreak/MethodBased/OnlyProtectedMethodChangedTest.php b/test/unit/DetectChanges/BCBreak/MethodBased/OnlyProtectedMethodChangedTest.php index 5d32c25e..8f717d55 100644 --- a/test/unit/DetectChanges/BCBreak/MethodBased/OnlyProtectedMethodChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/MethodBased/OnlyProtectedMethodChangedTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\MethodBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -14,7 +15,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\OnlyProtectedMethodChanged */ +#[CoversClass(OnlyProtectedMethodChanged::class)] final class OnlyProtectedMethodChangedTest extends TestCase { /** @var MethodBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/MethodBased/OnlyPublicMethodChangedTest.php b/test/unit/DetectChanges/BCBreak/MethodBased/OnlyPublicMethodChangedTest.php index 3c994324..baf3420c 100644 --- a/test/unit/DetectChanges/BCBreak/MethodBased/OnlyPublicMethodChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/MethodBased/OnlyPublicMethodChangedTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\MethodBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -14,7 +15,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\OnlyPublicMethodChanged */ +#[CoversClass(OnlyPublicMethodChanged::class)] final class OnlyPublicMethodChangedTest extends TestCase { /** @var MethodBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/MethodBased/SkipMethodBasedErrorsTest.php b/test/unit/DetectChanges/BCBreak/MethodBased/SkipMethodBasedErrorsTest.php index d97e7859..c246088a 100644 --- a/test/unit/DetectChanges/BCBreak/MethodBased/SkipMethodBasedErrorsTest.php +++ b/test/unit/DetectChanges/BCBreak/MethodBased/SkipMethodBasedErrorsTest.php @@ -5,6 +5,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\MethodBased; use Exception; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -15,7 +16,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\MethodBased\SkipMethodBasedErrors */ +#[CoversClass(SkipMethodBasedErrors::class)] final class SkipMethodBasedErrorsTest extends TestCase { /** @var MethodBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/PropertyBased/AccessiblePropertyChangedTest.php b/test/unit/DetectChanges/BCBreak/PropertyBased/AccessiblePropertyChangedTest.php index 47ca72ca..dc537612 100644 --- a/test/unit/DetectChanges/BCBreak/PropertyBased/AccessiblePropertyChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/PropertyBased/AccessiblePropertyChangedTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -14,7 +15,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\AccessiblePropertyChanged */ +#[CoversClass(AccessiblePropertyChanged::class)] final class AccessiblePropertyChangedTest extends TestCase { /** @var PropertyBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/PropertyBased/ExcludeInternalPropertyTest.php b/test/unit/DetectChanges/BCBreak/PropertyBased/ExcludeInternalPropertyTest.php index b17f1b38..af4a82cf 100644 --- a/test/unit/DetectChanges/BCBreak/PropertyBased/ExcludeInternalPropertyTest.php +++ b/test/unit/DetectChanges/BCBreak/PropertyBased/ExcludeInternalPropertyTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -13,7 +14,7 @@ use Roave\BetterReflection\Reflector\DefaultReflector; use Roave\BetterReflection\SourceLocator\Type\StringSourceLocator; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\ExcludeInternalProperty */ +#[CoversClass(ExcludeInternalProperty::class)] final class ExcludeInternalPropertyTest extends TestCase { public function testNormalPropertiesAreNotExcluded(): void diff --git a/test/unit/DetectChanges/BCBreak/PropertyBased/MultipleChecksOnAPropertyTest.php b/test/unit/DetectChanges/BCBreak/PropertyBased/MultipleChecksOnAPropertyTest.php index 1cee1a28..081ee1b8 100644 --- a/test/unit/DetectChanges/BCBreak/PropertyBased/MultipleChecksOnAPropertyTest.php +++ b/test/unit/DetectChanges/BCBreak/PropertyBased/MultipleChecksOnAPropertyTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -13,7 +14,7 @@ use Roave\BetterReflection\Reflection\ReflectionProperty; use RoaveTest\BackwardCompatibility\Assertion; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\MultipleChecksOnAProperty */ +#[CoversClass(MultipleChecksOnAProperty::class)] final class MultipleChecksOnAPropertyTest extends TestCase { public function testChecksAllGivenCheckers(): void diff --git a/test/unit/DetectChanges/BCBreak/PropertyBased/OnlyProtectedPropertyChangedTest.php b/test/unit/DetectChanges/BCBreak/PropertyBased/OnlyProtectedPropertyChangedTest.php index 579a2614..03bbfc43 100644 --- a/test/unit/DetectChanges/BCBreak/PropertyBased/OnlyProtectedPropertyChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/PropertyBased/OnlyProtectedPropertyChangedTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -14,7 +15,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\OnlyProtectedPropertyChanged */ +#[CoversClass(OnlyProtectedPropertyChanged::class)] final class OnlyProtectedPropertyChangedTest extends TestCase { /** @var PropertyBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/PropertyBased/OnlyPublicPropertyChangedTest.php b/test/unit/DetectChanges/BCBreak/PropertyBased/OnlyPublicPropertyChangedTest.php index 33e82914..f064655b 100644 --- a/test/unit/DetectChanges/BCBreak/PropertyBased/OnlyPublicPropertyChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/PropertyBased/OnlyPublicPropertyChangedTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -14,7 +15,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\OnlyPublicPropertyChanged */ +#[CoversClass(OnlyPublicPropertyChanged::class)] final class OnlyPublicPropertyChangedTest extends TestCase { /** @var PropertyBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyBecameInternalTest.php b/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyBecameInternalTest.php index b8fcf8e3..91f8710f 100644 --- a/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyBecameInternalTest.php +++ b/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyBecameInternalTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\PropertyBecameInternal; @@ -18,14 +20,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\PropertyBecameInternal */ +#[CoversClass(PropertyBecameInternal::class)] final class PropertyBecameInternalTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider propertiesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('propertiesToBeTested')] public function testDiffs( ReflectionProperty $fromFunction, ReflectionProperty $toFunction, @@ -45,7 +44,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function propertiesToBeTested(): array + public static function propertiesToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyDefaultValueChangedTest.php b/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyDefaultValueChangedTest.php index dbf559b9..36387c19 100644 --- a/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyDefaultValueChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyDefaultValueChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\PropertyDefaultValueChanged; @@ -18,14 +20,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\PropertyDefaultValueChanged */ +#[CoversClass(PropertyDefaultValueChanged::class)] final class PropertyDefaultValueChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider propertiesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('propertiesToBeTested')] public function testDiffs( ReflectionProperty $fromFunction, ReflectionProperty $toFunction, @@ -45,7 +44,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function propertiesToBeTested(): array + public static function propertiesToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyScopeChangedTest.php b/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyScopeChangedTest.php index c2e302c1..a2c2ab6e 100644 --- a/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyScopeChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyScopeChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\PropertyScopeChanged; @@ -18,14 +20,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\PropertyScopeChanged */ +#[CoversClass(PropertyScopeChanged::class)] final class PropertyScopeChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider propertiesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('propertiesToBeTested')] public function testDiffs( ReflectionProperty $fromFunction, ReflectionProperty $toFunction, @@ -45,7 +44,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function propertiesToBeTested(): array + public static function propertiesToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyTypeChangedTest.php b/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyTypeChangedTest.php index 416a3b88..d5a48bfd 100644 --- a/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyTypeChangedTest.php +++ b/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyTypeChangedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\PropertyTypeChanged; @@ -20,14 +22,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\PropertyTypeChanged */ +#[CoversClass(PropertyTypeChanged::class)] final class PropertyTypeChangedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider propertiesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('propertiesToBeTested')] public function testDiffs( ReflectionProperty $fromProperty, ReflectionProperty $toProperty, @@ -50,7 +49,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function propertiesToBeTested(): array + public static function propertiesToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyVisibilityReducedTest.php b/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyVisibilityReducedTest.php index 2ec9bb6a..37ba83c5 100644 --- a/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyVisibilityReducedTest.php +++ b/test/unit/DetectChanges/BCBreak/PropertyBased/PropertyVisibilityReducedTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\PropertyVisibilityReduced; @@ -18,14 +20,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\PropertyVisibilityReduced */ +#[CoversClass(PropertyVisibilityReduced::class)] final class PropertyVisibilityReducedTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider propertiesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('propertiesToBeTested')] public function testDiffs( ReflectionProperty $fromProperty, ReflectionProperty $toProperty, @@ -45,7 +44,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function propertiesToBeTested(): array + public static function propertiesToBeTested(): array { $astLocator = (new BetterReflection())->astLocator(); diff --git a/test/unit/DetectChanges/BCBreak/PropertyBased/SkipPropertyBasedErrorsTest.php b/test/unit/DetectChanges/BCBreak/PropertyBased/SkipPropertyBasedErrorsTest.php index c9d3afc0..bd670b70 100644 --- a/test/unit/DetectChanges/BCBreak/PropertyBased/SkipPropertyBasedErrorsTest.php +++ b/test/unit/DetectChanges/BCBreak/PropertyBased/SkipPropertyBasedErrorsTest.php @@ -5,6 +5,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased; use Exception; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -15,7 +16,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\PropertyBased\SkipPropertyBasedErrors */ +#[CoversClass(SkipPropertyBasedErrors::class)] final class SkipPropertyBasedErrorsTest extends TestCase { /** @var PropertyBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/TraitBased/ExcludeInternalTraitTest.php b/test/unit/DetectChanges/BCBreak/TraitBased/ExcludeInternalTraitTest.php index db2328a2..6b8ca975 100644 --- a/test/unit/DetectChanges/BCBreak/TraitBased/ExcludeInternalTraitTest.php +++ b/test/unit/DetectChanges/BCBreak/TraitBased/ExcludeInternalTraitTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\TraitBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -13,7 +14,7 @@ use Roave\BetterReflection\Reflector\DefaultReflector; use Roave\BetterReflection\SourceLocator\Type\StringSourceLocator; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\TraitBased\ExcludeInternalTrait */ +#[CoversClass(ExcludeInternalTrait::class)] final class ExcludeInternalTraitTest extends TestCase { public function testNormalTraitsAreNotExcluded(): void diff --git a/test/unit/DetectChanges/BCBreak/TraitBased/MultipleChecksOnATraitTest.php b/test/unit/DetectChanges/BCBreak/TraitBased/MultipleChecksOnATraitTest.php index 4936b4d0..d5f2ebb0 100644 --- a/test/unit/DetectChanges/BCBreak/TraitBased/MultipleChecksOnATraitTest.php +++ b/test/unit/DetectChanges/BCBreak/TraitBased/MultipleChecksOnATraitTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\TraitBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -12,7 +13,7 @@ use Roave\BetterReflection\Reflection\ReflectionClass; use RoaveTest\BackwardCompatibility\Assertion; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\TraitBased\MultipleChecksOnATrait */ +#[CoversClass(MultipleChecksOnATrait::class)] final class MultipleChecksOnATraitTest extends TestCase { public function testChecksAllGivenCheckers(): void diff --git a/test/unit/DetectChanges/BCBreak/TraitBased/SkipTraitBasedErrorsTest.php b/test/unit/DetectChanges/BCBreak/TraitBased/SkipTraitBasedErrorsTest.php index 3634a147..ce180abb 100644 --- a/test/unit/DetectChanges/BCBreak/TraitBased/SkipTraitBasedErrorsTest.php +++ b/test/unit/DetectChanges/BCBreak/TraitBased/SkipTraitBasedErrorsTest.php @@ -5,6 +5,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\TraitBased; use Exception; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; @@ -15,7 +16,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\TraitBased\SkipTraitBasedErrors */ +#[CoversClass(SkipTraitBasedErrors::class)] final class SkipTraitBasedErrorsTest extends TestCase { /** @var TraitBased&MockObject */ diff --git a/test/unit/DetectChanges/BCBreak/TraitBased/TraitBecameClassTest.php b/test/unit/DetectChanges/BCBreak/TraitBased/TraitBecameClassTest.php index 0d90207c..bc394567 100644 --- a/test/unit/DetectChanges/BCBreak/TraitBased/TraitBecameClassTest.php +++ b/test/unit/DetectChanges/BCBreak/TraitBased/TraitBecameClassTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\TraitBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\TraitBased\TraitBecameClass; @@ -17,14 +19,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\TraitBased\TraitBecameClass */ +#[CoversClass(TraitBecameClass::class)] final class TraitBecameClassTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider classesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('classesToBeTested')] public function testDiffs( ReflectionClass $fromClass, ReflectionClass $toClass, @@ -44,7 +43,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function classesToBeTested(): array + public static function classesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); $fromReflector = new DefaultReflector(new StringSourceLocator( diff --git a/test/unit/DetectChanges/BCBreak/TraitBased/TraitBecameInterfaceTest.php b/test/unit/DetectChanges/BCBreak/TraitBased/TraitBecameInterfaceTest.php index 4036a4d9..9bc831c3 100644 --- a/test/unit/DetectChanges/BCBreak/TraitBased/TraitBecameInterfaceTest.php +++ b/test/unit/DetectChanges/BCBreak/TraitBased/TraitBecameInterfaceTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\TraitBased; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\DetectChanges\BCBreak\TraitBased\TraitBecameInterface; @@ -17,14 +19,11 @@ use function array_map; use function iterator_to_array; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\TraitBased\TraitBecameInterface */ +#[CoversClass(TraitBecameInterface::class)] final class TraitBecameInterfaceTest extends TestCase { - /** - * @param string[] $expectedMessages - * - * @dataProvider classesToBeTested - */ + /** @param string[] $expectedMessages */ + #[DataProvider('classesToBeTested')] public function testDiffs( ReflectionClass $fromClass, ReflectionClass $toClass, @@ -44,7 +43,7 @@ public function testDiffs( * @return array>> * @psalm-return array}> */ - public function classesToBeTested(): array + public static function classesToBeTested(): array { $locator = (new BetterReflection())->astLocator(); $fromReflector = new DefaultReflector(new StringSourceLocator( diff --git a/test/unit/DetectChanges/BCBreak/TraitBased/UseClassBasedChecksOnATraitTest.php b/test/unit/DetectChanges/BCBreak/TraitBased/UseClassBasedChecksOnATraitTest.php index 71931a22..73fd2b39 100644 --- a/test/unit/DetectChanges/BCBreak/TraitBased/UseClassBasedChecksOnATraitTest.php +++ b/test/unit/DetectChanges/BCBreak/TraitBased/UseClassBasedChecksOnATraitTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\DetectChanges\BCBreak\TraitBased; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; @@ -13,7 +14,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\DetectChanges\BCBreak\TraitBased\UseClassBasedChecksOnATrait */ +#[CoversClass(UseClassBasedChecksOnATrait::class)] final class UseClassBasedChecksOnATraitTest extends TestCase { public function testCompare(): void diff --git a/test/unit/DetectChanges/Variance/TypeIsContravariantTest.php b/test/unit/DetectChanges/Variance/TypeIsContravariantTest.php index 9c57d1f9..509b3535 100644 --- a/test/unit/DetectChanges/Variance/TypeIsContravariantTest.php +++ b/test/unit/DetectChanges/Variance/TypeIsContravariantTest.php @@ -8,6 +8,8 @@ use PhpParser\Node\IntersectionType; use PhpParser\Node\NullableType; use PhpParser\Node\UnionType; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Psl\Type; use Roave\BackwardCompatibility\DetectChanges\Variance\TypeIsContravariant; @@ -24,10 +26,10 @@ use function array_map; use function array_merge; -/** @covers \Roave\BackwardCompatibility\DetectChanges\Variance\TypeIsContravariant */ +#[CoversClass(TypeIsContravariant::class)] final class TypeIsContravariantTest extends TestCase { - /** @dataProvider checkedTypes */ + #[DataProvider('checkedTypes')] public function testContravariance( ReflectionIntersectionType|ReflectionUnionType|ReflectionNamedType|null $type, ReflectionIntersectionType|ReflectionUnionType|ReflectionNamedType|null $newType, @@ -46,7 +48,7 @@ public function testContravariance( * 2: bool * }> */ - public function checkedTypes(): array + public static function checkedTypes(): array { $reflector = new DefaultReflector(new StringSourceLocator( <<<'PHP' @@ -458,7 +460,7 @@ final class OwnerPropertyContainer { private $owner; } ); } - /** @dataProvider existingTypes */ + #[DataProvider('existingTypes')] public function testContravarianceConsidersSameTypeAlwaysContravariant( ReflectionIntersectionType|ReflectionUnionType|ReflectionNamedType|null $type, ): void { @@ -468,7 +470,7 @@ public function testContravarianceConsidersSameTypeAlwaysContravariant( } /** @return list */ - public function existingTypes(): array + public static function existingTypes(): array { $reflector = new DefaultReflector(new StringSourceLocator( <<<'PHP' @@ -516,7 +518,7 @@ final class OwnerPropertyContainer { private $owner; } ); } - /** @dataProvider existingNullableTypeStrings */ + #[DataProvider('existingNullableTypeStrings')] public function testContravarianceConsidersNullability(string $type): void { $reflector = new DefaultReflector(new StringSourceLocator( @@ -547,7 +549,7 @@ final class OwnerPropertyContainer { private $owner; } } /** @return string[][] */ - public function existingNullableTypeStrings(): array + public static function existingNullableTypeStrings(): array { return [ ['int'], diff --git a/test/unit/DetectChanges/Variance/TypeIsCovariantTest.php b/test/unit/DetectChanges/Variance/TypeIsCovariantTest.php index 22ea7bb6..638317dd 100644 --- a/test/unit/DetectChanges/Variance/TypeIsCovariantTest.php +++ b/test/unit/DetectChanges/Variance/TypeIsCovariantTest.php @@ -8,6 +8,8 @@ use PhpParser\Node\IntersectionType; use PhpParser\Node\NullableType; use PhpParser\Node\UnionType; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Psl\Type; use Roave\BackwardCompatibility\DetectChanges\Variance\TypeIsCovariant; @@ -24,10 +26,10 @@ use function array_map; use function array_merge; -/** @covers \Roave\BackwardCompatibility\DetectChanges\Variance\TypeIsCovariant */ +#[CoversClass(TypeIsCovariant::class)] final class TypeIsCovariantTest extends TestCase { - /** @dataProvider checkedTypes */ + #[DataProvider('checkedTypes')] public function testCovariance( ReflectionIntersectionType|ReflectionUnionType|ReflectionNamedType|null $type, ReflectionIntersectionType|ReflectionUnionType|ReflectionNamedType|null $newType, @@ -46,7 +48,7 @@ public function testCovariance( * 2: bool * }> */ - public function checkedTypes(): array + public static function checkedTypes(): array { $reflector = new DefaultReflector(new StringSourceLocator( <<<'PHP' @@ -498,7 +500,7 @@ final class OwnerPropertyContainer { private $owner; } ); } - /** @dataProvider existingTypes */ + #[DataProvider('existingTypes')] public function testCovarianceConsidersSameTypeAlwaysCovariant( ReflectionIntersectionType|ReflectionUnionType|ReflectionNamedType|null $type, ): void { @@ -508,7 +510,7 @@ public function testCovarianceConsidersSameTypeAlwaysCovariant( } /** @return list */ - public function existingTypes(): array + public static function existingTypes(): array { $reflector = new DefaultReflector(new StringSourceLocator( <<<'PHP' @@ -557,7 +559,7 @@ final class OwnerPropertyContainer { private $owner; } ); } - /** @dataProvider existingNullableTypeStrings */ + #[DataProvider('existingNullableTypeStrings')] public function testCovarianceConsidersNullability(string $type): void { $reflector = new DefaultReflector(new StringSourceLocator( @@ -588,7 +590,7 @@ final class OwnerPropertyContainer { private $owner; } } /** @return string[][] */ - public function existingNullableTypeStrings(): array + public static function existingNullableTypeStrings(): array { return [ ['int'], diff --git a/test/unit/Factory/ComposerInstallationReflectorFactoryTest.php b/test/unit/Factory/ComposerInstallationReflectorFactoryTest.php index 91f985a9..b543c701 100644 --- a/test/unit/Factory/ComposerInstallationReflectorFactoryTest.php +++ b/test/unit/Factory/ComposerInstallationReflectorFactoryTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\Factory; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Factory\ComposerInstallationReflectorFactory; use Roave\BackwardCompatibility\LocateSources\LocateSources; @@ -13,7 +14,7 @@ use function uniqid; -/** @covers \Roave\BackwardCompatibility\Factory\ComposerInstallationReflectorFactory */ +#[CoversClass(ComposerInstallationReflectorFactory::class)] final class ComposerInstallationReflectorFactoryTest extends TestCase { /** diff --git a/test/unit/Formatter/FunctionNameTest.php b/test/unit/Formatter/FunctionNameTest.php index 548cac7c..1ced7b3e 100644 --- a/test/unit/Formatter/FunctionNameTest.php +++ b/test/unit/Formatter/FunctionNameTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\Formatter; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Formatter\FunctionName; use Roave\BetterReflection\BetterReflection; @@ -15,10 +17,10 @@ use function assert; -/** @covers \Roave\BackwardCompatibility\Formatter\FunctionName */ +#[CoversClass(FunctionName::class)] final class FunctionNameTest extends TestCase { - /** @dataProvider functionsToBeTested */ + #[DataProvider('functionsToBeTested')] public function testName(ReflectionFunction|ReflectionMethod $function, string $expectedName): void { self::assertSame($expectedName, (new FunctionName())($function)); @@ -30,7 +32,7 @@ public function testName(ReflectionFunction|ReflectionMethod $function, string $ * 1: string * }> */ - public function functionsToBeTested(): array + public static function functionsToBeTested(): array { $locator = new StringSourceLocator( <<<'PHP' @@ -67,18 +69,18 @@ function e() {} 'N1\b()', ], 'N2\C::d' => [ - $this->getMethod($reflector->reflectClass('N2\C'), 'd'), + self::getMethod($reflector->reflectClass('N2\C'), 'd'), 'N2\C::d()', ], 'N2\C#e' => [ - $this->getMethod($reflector->reflectClass('N2\C'), 'e'), + self::getMethod($reflector->reflectClass('N2\C'), 'e'), 'N2\C#e()', ], ]; } /** @param non-empty-string $name */ - private function getMethod(ReflectionClass $class, string $name): ReflectionMethod + private static function getMethod(ReflectionClass $class, string $name): ReflectionMethod { $method = $class->getMethod($name); diff --git a/test/unit/Formatter/GithubActionsFormatterTest.php b/test/unit/Formatter/GithubActionsFormatterTest.php index 13a00437..fe8f2110 100644 --- a/test/unit/Formatter/GithubActionsFormatterTest.php +++ b/test/unit/Formatter/GithubActionsFormatterTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\Formatter; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Psl\Env; use Psl\Filesystem; @@ -14,7 +15,7 @@ use Roave\BackwardCompatibility\Git\CheckedOutRepository; use Symfony\Component\Console\Output\BufferedOutput; -/** @covers \Roave\BackwardCompatibility\Formatter\GithubActionsFormatter */ +#[CoversClass(GithubActionsFormatter::class)] final class GithubActionsFormatterTest extends TestCase { /** @throws ReflectionException */ diff --git a/test/unit/Formatter/JsonFormatterTest.php b/test/unit/Formatter/JsonFormatterTest.php index 5f1478c8..a6794781 100644 --- a/test/unit/Formatter/JsonFormatterTest.php +++ b/test/unit/Formatter/JsonFormatterTest.php @@ -5,6 +5,7 @@ namespace RoaveTest\BackwardCompatibility\Formatter; use EnricoStahn\JsonAssert\AssertClass as JsonAssert; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Psl\Env; use Psl\Filesystem; @@ -21,7 +22,7 @@ use const JSON_THROW_ON_ERROR; -/** @covers \Roave\BackwardCompatibility\Formatter\JsonFormatter */ +#[CoversClass(JsonFormatter::class)] final class JsonFormatterTest extends TestCase { /** @throws ReflectionException */ diff --git a/test/unit/Formatter/JunitFormatterTest.php b/test/unit/Formatter/JunitFormatterTest.php index 452ae036..50e684c6 100644 --- a/test/unit/Formatter/JunitFormatterTest.php +++ b/test/unit/Formatter/JunitFormatterTest.php @@ -5,6 +5,7 @@ namespace RoaveTest\BackwardCompatibility\Formatter; use DOMDocument; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Psl\Env; use Psl\Filesystem; @@ -17,7 +18,7 @@ use function extension_loaded; -/** @covers \Roave\BackwardCompatibility\Formatter\JunitFormatter */ +#[CoversClass(JunitFormatter::class)] final class JunitFormatterTest extends TestCase { /** @throws ReflectionException */ diff --git a/test/unit/Formatter/MarkdownPipedToSymfonyConsoleFormatterTest.php b/test/unit/Formatter/MarkdownPipedToSymfonyConsoleFormatterTest.php index b1f15881..d990ae57 100644 --- a/test/unit/Formatter/MarkdownPipedToSymfonyConsoleFormatterTest.php +++ b/test/unit/Formatter/MarkdownPipedToSymfonyConsoleFormatterTest.php @@ -5,13 +5,14 @@ namespace RoaveTest\BackwardCompatibility\Formatter; use Exception; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Change; use Roave\BackwardCompatibility\Changes; use Roave\BackwardCompatibility\Formatter\MarkdownPipedToSymfonyConsoleFormatter; use Symfony\Component\Console\Output\OutputInterface; -/** @covers \Roave\BackwardCompatibility\Formatter\MarkdownPipedToSymfonyConsoleFormatter */ +#[CoversClass(MarkdownPipedToSymfonyConsoleFormatter::class)] final class MarkdownPipedToSymfonyConsoleFormatterTest extends TestCase { public function testWrite(): void diff --git a/test/unit/Formatter/ReflectionPropertyNameTest.php b/test/unit/Formatter/ReflectionPropertyNameTest.php index 7f6fb606..015b39f9 100644 --- a/test/unit/Formatter/ReflectionPropertyNameTest.php +++ b/test/unit/Formatter/ReflectionPropertyNameTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\Formatter; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Formatter\ReflectionPropertyName; use Roave\BetterReflection\BetterReflection; @@ -15,10 +17,10 @@ use function array_keys; use function array_map; -/** @covers \Roave\BackwardCompatibility\Formatter\ReflectionPropertyName */ +#[CoversClass(ReflectionPropertyName::class)] final class ReflectionPropertyNameTest extends TestCase { - /** @dataProvider propertiesToBeTested */ + #[DataProvider('propertiesToBeTested')] public function testName(ReflectionProperty $property, string $expectedName): void { self::assertSame($expectedName, (new ReflectionPropertyName())($property)); @@ -28,7 +30,7 @@ public function testName(ReflectionProperty $property, string $expectedName): vo * @return array> * @psalm-return array */ - public function propertiesToBeTested(): array + public static function propertiesToBeTested(): array { $locator = new StringSourceLocator( <<<'PHP' diff --git a/test/unit/Formatter/SymbolStartTest.php b/test/unit/Formatter/SymbolStartTest.php index 699c6f28..a221ea5d 100644 --- a/test/unit/Formatter/SymbolStartTest.php +++ b/test/unit/Formatter/SymbolStartTest.php @@ -6,6 +6,7 @@ use BadMethodCallException; use PhpParser\Node\Stmt\Function_; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Formatter\SymbolStart; use Roave\BetterReflection\BetterReflection; @@ -19,7 +20,7 @@ use Roave\BetterReflection\SourceLocator\Type\SourceLocator; use Roave\BetterReflection\SourceLocator\Type\StringSourceLocator; -/** @covers \Roave\BackwardCompatibility\Formatter\SymbolStart */ +#[CoversClass(SymbolStart::class)] final class SymbolStartTest extends TestCase { public function testCanGetStartColumnForSimpleSymbol(): void diff --git a/test/unit/Formatter/SymfonyConsoleTextFormatterTest.php b/test/unit/Formatter/SymfonyConsoleTextFormatterTest.php index 947fd4f4..6fb903a4 100644 --- a/test/unit/Formatter/SymfonyConsoleTextFormatterTest.php +++ b/test/unit/Formatter/SymfonyConsoleTextFormatterTest.php @@ -5,6 +5,7 @@ namespace RoaveTest\BackwardCompatibility\Formatter; use ArrayIterator; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Psl\SecureRandom; use Psl\Str; @@ -14,7 +15,7 @@ use Roave\BackwardCompatibility\Formatter\SymfonyConsoleTextFormatter; use Symfony\Component\Console\Output\OutputInterface; -/** @covers \Roave\BackwardCompatibility\Formatter\SymfonyConsoleTextFormatter */ +#[CoversClass(SymfonyConsoleTextFormatter::class)] final class SymfonyConsoleTextFormatterTest extends TestCase { /** @throws ReflectionException */ diff --git a/test/unit/Git/CheckedOutRepositoryTest.php b/test/unit/Git/CheckedOutRepositoryTest.php index b6a0c492..ee17fc6c 100644 --- a/test/unit/Git/CheckedOutRepositoryTest.php +++ b/test/unit/Git/CheckedOutRepositoryTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\Git; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Psl\Env; use Psl\Exception\InvariantViolationException; @@ -11,7 +12,7 @@ use Psl\SecureRandom; use Roave\BackwardCompatibility\Git\CheckedOutRepository; -/** @covers \Roave\BackwardCompatibility\Git\CheckedOutRepository */ +#[CoversClass(CheckedOutRepository::class)] final class CheckedOutRepositoryTest extends TestCase { public function testFromPath(): void diff --git a/test/unit/Git/GetVersionCollectionFromGitRepositoryTest.php b/test/unit/Git/GetVersionCollectionFromGitRepositoryTest.php index 0fcc73d5..2a00cca8 100644 --- a/test/unit/Git/GetVersionCollectionFromGitRepositoryTest.php +++ b/test/unit/Git/GetVersionCollectionFromGitRepositoryTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\Git; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Psl\Dict; use Psl\Env; @@ -16,7 +17,7 @@ use Roave\BackwardCompatibility\Git\GetVersionCollectionFromGitRepository; use Version\Version; -/** @covers \Roave\BackwardCompatibility\Git\GetVersionCollectionFromGitRepository */ +#[CoversClass(GetVersionCollectionFromGitRepository::class)] final class GetVersionCollectionFromGitRepositoryTest extends TestCase { private CheckedOutRepository $repoPath; diff --git a/test/unit/Git/GitCheckoutRevisionToTemporaryPathTest.php b/test/unit/Git/GitCheckoutRevisionToTemporaryPathTest.php index ffa4ffd8..faddfd6c 100644 --- a/test/unit/Git/GitCheckoutRevisionToTemporaryPathTest.php +++ b/test/unit/Git/GitCheckoutRevisionToTemporaryPathTest.php @@ -4,6 +4,7 @@ namespace RoaveTest\BackwardCompatibility\Git; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Psl\Env; use Psl\File; @@ -15,7 +16,7 @@ use Roave\BackwardCompatibility\Git\Revision; use RuntimeException; -/** @covers \Roave\BackwardCompatibility\Git\GitCheckoutRevisionToTemporaryPath */ +#[CoversClass(GitCheckoutRevisionToTemporaryPath::class)] final class GitCheckoutRevisionToTemporaryPathTest extends TestCase { private const TEST_REVISION_TO_CHECKOUT = '428327492a803b6e0c612b157a67a50a47275461'; diff --git a/test/unit/Git/GitParseRevisionTest.php b/test/unit/Git/GitParseRevisionTest.php index 5e727205..ceb16814 100644 --- a/test/unit/Git/GitParseRevisionTest.php +++ b/test/unit/Git/GitParseRevisionTest.php @@ -4,22 +4,24 @@ namespace RoaveTest\BackwardCompatibility\Git; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\Git\CheckedOutRepository; use Roave\BackwardCompatibility\Git\GitParseRevision; -/** @covers \Roave\BackwardCompatibility\Git\GitParseRevision */ +#[CoversClass(GitParseRevision::class)] final class GitParseRevisionTest extends TestCase { /** @return string[][] */ - public function revisionProvider(): array + public static function revisionProvider(): array { return [ ['e72a47b', 'e72a47bb9d777c9e73c1322d58a83450d36d9454'], ]; } - /** @dataProvider revisionProvider */ + #[DataProvider('revisionProvider')] public function testFromStringForRepository(string $revisionToBeParsed, string $expectedRevision): void { self::assertSame( diff --git a/test/unit/Git/PickLastVersionFromCollectionTest.php b/test/unit/Git/PickLastVersionFromCollectionTest.php index 952b506c..92df2fdd 100644 --- a/test/unit/Git/PickLastVersionFromCollectionTest.php +++ b/test/unit/Git/PickLastVersionFromCollectionTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\Git; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Psl\Exception\InvariantViolationException; use Psl\Type; @@ -13,14 +15,14 @@ use function array_map; -/** @covers \Roave\BackwardCompatibility\Git\PickLastVersionFromCollection */ +#[CoversClass(PickLastVersionFromCollection::class)] final class PickLastVersionFromCollectionTest extends TestCase { /** * @return array>> * @psalm-return array}> */ - public function lastStableVersionForCollectionProvider(): array + public static function lastStableVersionForCollectionProvider(): array { return [ ['2.2.0', ['1.1.0', '2.1.1', '2.2.0', '1.2.1']], @@ -39,11 +41,8 @@ public function lastStableVersionForCollectionProvider(): array ]; } - /** - * @param string[] $collectionOfVersions - * - * @dataProvider lastStableVersionForCollectionProvider - */ + /** @param string[] $collectionOfVersions */ + #[DataProvider('lastStableVersionForCollectionProvider')] public function testForRepository(string $expectedVersion, array $collectionOfVersions): void { self::assertSame( diff --git a/test/unit/Git/RevisionTest.php b/test/unit/Git/RevisionTest.php index 33004e31..5938a095 100644 --- a/test/unit/Git/RevisionTest.php +++ b/test/unit/Git/RevisionTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\Git; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Psl\Exception\InvariantViolationException; use Psl\Hash; @@ -11,7 +13,7 @@ use Psl\Str; use Roave\BackwardCompatibility\Git\Revision; -/** @covers \Roave\BackwardCompatibility\Git\Revision */ +#[CoversClass(Revision::class)] final class RevisionTest extends TestCase { public function testFromSha1WithValidSha1(): void @@ -33,7 +35,7 @@ public function testFromSha1WithNewlinesStillProvidesValidSha1(): void } /** @return string[][] */ - public function invalidRevisionProvider(): array + public static function invalidRevisionProvider(): array { return [ [''], @@ -45,7 +47,7 @@ public function invalidRevisionProvider(): array ]; } - /** @dataProvider invalidRevisionProvider */ + #[DataProvider('invalidRevisionProvider')] public function testInvalidSha1Rejected(string $invalidRevision): void { $this->expectException(InvariantViolationException::class); diff --git a/test/unit/LocateDependencies/LocateDependenciesViaComposerTest.php b/test/unit/LocateDependencies/LocateDependenciesViaComposerTest.php index a54ad6db..198b5845 100644 --- a/test/unit/LocateDependencies/LocateDependenciesViaComposerTest.php +++ b/test/unit/LocateDependencies/LocateDependenciesViaComposerTest.php @@ -5,6 +5,7 @@ namespace RoaveTest\BackwardCompatibility\LocateDependencies; use Composer\Installer; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Psl\Env; @@ -19,7 +20,7 @@ use Roave\BetterReflection\SourceLocator\Type\PhpInternalSourceLocator; use Roave\BetterReflection\SourceLocator\Type\SourceLocator; -/** @covers \Roave\BackwardCompatibility\LocateDependencies\LocateDependenciesViaComposer */ +#[CoversClass(LocateDependenciesViaComposer::class)] final class LocateDependenciesViaComposerTest extends TestCase { private string $originalCwd; diff --git a/test/unit/LocateSources/LocateSourcesViaComposerJsonTest.php b/test/unit/LocateSources/LocateSourcesViaComposerJsonTest.php index 10d76ce1..82c76fc9 100644 --- a/test/unit/LocateSources/LocateSourcesViaComposerJsonTest.php +++ b/test/unit/LocateSources/LocateSourcesViaComposerJsonTest.php @@ -4,12 +4,13 @@ namespace RoaveTest\BackwardCompatibility\LocateSources; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Roave\BackwardCompatibility\LocateSources\LocateSourcesViaComposerJson; use Roave\BetterReflection\BetterReflection; use Roave\BetterReflection\Reflector\DefaultReflector; -/** @covers \Roave\BackwardCompatibility\LocateSources\LocateSourcesViaComposerJson */ +#[CoversClass(LocateSourcesViaComposerJson::class)] final class LocateSourcesViaComposerJsonTest extends TestCase { private LocateSourcesViaComposerJson $locateSources; diff --git a/test/unit/SourceLocator/LocatedSourceWithStrippedSourcesDirectoryTest.php b/test/unit/SourceLocator/LocatedSourceWithStrippedSourcesDirectoryTest.php index 36564160..3052c217 100644 --- a/test/unit/SourceLocator/LocatedSourceWithStrippedSourcesDirectoryTest.php +++ b/test/unit/SourceLocator/LocatedSourceWithStrippedSourcesDirectoryTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\SourceLocator; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use ReflectionClass; use ReflectionMethod; @@ -14,10 +16,10 @@ use function array_filter; use function array_map; -/** @covers \Roave\BackwardCompatibility\SourceLocator\LocatedSourceWithStrippedSourcesDirectory */ +#[CoversClass(LocatedSourceWithStrippedSourcesDirectory::class)] final class LocatedSourceWithStrippedSourcesDirectoryTest extends TestCase { - /** @dataProvider verifiedPaths */ + #[DataProvider('verifiedPaths')] public function testWillStripPrefixFilePathWhenLocatedSourceInConfiguredPath( string $sourcePath, string $strippedSourcesPath, @@ -37,7 +39,7 @@ public function testWillStripPrefixFilePathWhenLocatedSourceInConfiguredPath( } /** @return non-empty-list */ - public function verifiedPaths(): array + public static function verifiedPaths(): array { return [ ['/foo/bar.php', '/foo', '/bar.php'], @@ -155,9 +157,8 @@ public function testWillGetAliasNameFromGivenLocatedSource(): void /** * This test makes sure that we didn't forget to override any public API of {@see LocatedSource} - * - * @dataProvider methodsDeclaredByLocatedSource */ + #[DataProvider('methodsDeclaredByLocatedSource')] public function testAllMethodsOfOriginalLocatedSourceAreOverridden(ReflectionMethod $method): void { self::assertSame( @@ -170,7 +171,7 @@ public function testAllMethodsOfOriginalLocatedSourceAreOverridden(ReflectionMet } /** @return array */ - public function methodsDeclaredByLocatedSource(): array + public static function methodsDeclaredByLocatedSource(): array { $methods = array_filter( (new ReflectionClass(LocatedSourceWithStrippedSourcesDirectory::class)) diff --git a/test/unit/SourceLocator/ReplaceSourcePathOfLocatedSourcesTest.php b/test/unit/SourceLocator/ReplaceSourcePathOfLocatedSourcesTest.php index 0c5cd4a0..c94783ce 100644 --- a/test/unit/SourceLocator/ReplaceSourcePathOfLocatedSourcesTest.php +++ b/test/unit/SourceLocator/ReplaceSourcePathOfLocatedSourcesTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\SourceLocator; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use ReflectionClass; use ReflectionMethod; @@ -20,7 +22,7 @@ use function array_filter; use function array_map; -/** @covers \Roave\BackwardCompatibility\SourceLocator\ReplaceSourcePathOfLocatedSources */ +#[CoversClass(ReplaceSourcePathOfLocatedSources::class)] final class ReplaceSourcePathOfLocatedSourcesTest extends TestCase { public function testWillWrapFoundReflection(): void @@ -73,9 +75,8 @@ public function testWillWrapFoundReflectionsOfType(): void /** * This test makes sure that we didn't forget to override any public API of {@see ReplaceSourcePathOfLocatedSources} - * - * @dataProvider methodsDeclaredByReplaceSourcePathOfLocatedSources */ + #[DataProvider('methodsDeclaredByReplaceSourcePathOfLocatedSources')] public function testAllMethodsOfBaseClassAreOverridden(ReflectionMethod $method): void { self::assertSame( @@ -88,7 +89,7 @@ public function testAllMethodsOfBaseClassAreOverridden(ReflectionMethod $method) } /** @return array */ - public function methodsDeclaredByReplaceSourcePathOfLocatedSources(): array + public static function methodsDeclaredByReplaceSourcePathOfLocatedSources(): array { $methods = array_filter( (new ReflectionClass(ReplaceSourcePathOfLocatedSources::class)) diff --git a/test/unit/SourceLocator/StaticClassMapSourceLocatorTest.php b/test/unit/SourceLocator/StaticClassMapSourceLocatorTest.php index 7feab343..d82820a8 100644 --- a/test/unit/SourceLocator/StaticClassMapSourceLocatorTest.php +++ b/test/unit/SourceLocator/StaticClassMapSourceLocatorTest.php @@ -4,6 +4,8 @@ namespace RoaveTest\BackwardCompatibility\SourceLocator; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Psl\Exception\InvariantViolationException; @@ -17,7 +19,7 @@ use Roave\BetterReflection\SourceLocator\Ast\Locator; use Roave\BetterReflection\SourceLocator\Located\LocatedSource; -/** @covers \Roave\BackwardCompatibility\SourceLocator\StaticClassMapSourceLocator */ +#[CoversClass(StaticClassMapSourceLocator::class)] final class StaticClassMapSourceLocatorTest extends TestCase { /** @var Locator&MockObject */ @@ -65,11 +67,8 @@ public function testAcceptsEmptySet(): void )); } - /** - * @param non-empty-string $thisClassFilePath - * - * @dataProvider thisClassPossiblePaths - */ + /** @param non-empty-string $thisClassFilePath */ + #[DataProvider('thisClassPossiblePaths')] public function testWillLocateThisClass(string $thisClassFilePath): void { $locator = new StaticClassMapSourceLocator([self::class => $thisClassFilePath], $this->astLocator);