diff --git a/composer.json b/composer.json index 560a997..507956f 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "require-dev": { "phpstan/phpstan": "^2.2", - "phpunit/phpunit": "^10.5", + "phpunit/phpunit": "^12.5", "phpmd/phpmd": "^2.13", "squizlabs/php_codesniffer": "^4.0" }, diff --git a/composer.lock b/composer.lock index 48b0dbe..3aaae4d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "be4cb9faed38a3031d09fd796d3bf906", + "content-hash": "0ff67aff3c9550966c8cd116a95f6240", "packages": [ { "name": "justinrainbow/json-schema", @@ -1296,35 +1296,33 @@ }, { "name": "phpunit/php-code-coverage", - "version": "10.1.16", + "version": "12.5.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "7e308268858ed6baedc8704a304727d20bc07c77" + "reference": "7440368d94738d54f2c1de24dbd3871793bbb0dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7e308268858ed6baedc8704a304727d20bc07c77", - "reference": "7e308268858ed6baedc8704a304727d20bc07c77", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7440368d94738d54f2c1de24dbd3871793bbb0dd", + "reference": "7440368d94738d54f2c1de24dbd3871793bbb0dd", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.19.1 || ^5.1.0", - "php": ">=8.1", - "phpunit/php-file-iterator": "^4.1.0", - "phpunit/php-text-template": "^3.0.1", - "sebastian/code-unit-reverse-lookup": "^3.0.0", - "sebastian/complexity": "^3.2.0", - "sebastian/environment": "^6.1.0", - "sebastian/lines-of-code": "^2.0.2", - "sebastian/version": "^4.0.1", - "theseer/tokenizer": "^1.2.3" + "nikic/php-parser": "^5.9.0", + "php": ">=8.3", + "phpunit/php-text-template": "^5.0.1", + "sebastian/complexity": "^5.0", + "sebastian/environment": "^8.1.2", + "sebastian/lines-of-code": "^4.0.1", + "sebastian/version": "^6.0", + "theseer/tokenizer": "^2.0.1" }, "require-dev": { - "phpunit/phpunit": "^10.1" + "phpunit/phpunit": "^12.5.37" }, "suggest": { "ext-pcov": "PHP extension that provides line coverage", @@ -1333,7 +1331,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "10.1.x-dev" + "dev-main": "12.5.x-dev" } }, "autoload": { @@ -1362,40 +1360,52 @@ "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/10.1.16" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.5.8" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-code-coverage", + "type": "tidelift" } ], - "time": "2024-08-22T04:31:57+00:00" + "time": "2026-10-03T14:03:50+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "4.1.0", + "version": "6.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c" + "reference": "a248d1640ab059b075f53a2ef0f9856e864e06b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a95037b6d9e608ba092da1b23931e537cadc3c3c", - "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a248d1640ab059b075f53a2ef0f9856e864e06b5", + "reference": "a248d1640ab059b075f53a2ef0f9856e864e06b5", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^12.5.33" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -1423,36 +1433,48 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/4.1.0" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/6.0.2" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-file-iterator", + "type": "tidelift" } ], - "time": "2023-08-31T06:24:48+00:00" + "time": "2026-08-25T14:40:53+00:00" }, { "name": "phpunit/php-invoker", - "version": "4.0.0", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7" + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", - "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.3" }, "require-dev": { "ext-pcntl": "*", - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^12.0" }, "suggest": { "ext-pcntl": "*" @@ -1460,7 +1482,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -1486,7 +1508,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-invoker/issues", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/4.0.0" + "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/6.0.0" }, "funding": [ { @@ -1494,32 +1517,32 @@ "type": "github" } ], - "time": "2023-02-03T06:56:09+00:00" + "time": "2025-02-07T04:58:58+00:00" }, { "name": "phpunit/php-text-template", - "version": "3.0.1", + "version": "5.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748" + "reference": "babab73b7ef9fae406f2eb3ee11323a61caa63d5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/0c7b06ff49e3d5072f057eb1fa59258bf287a748", - "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/babab73b7ef9fae406f2eb3ee11323a61caa63d5", + "reference": "babab73b7ef9fae406f2eb3ee11323a61caa63d5", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^12.5.37" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -1546,40 +1569,52 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-text-template/issues", "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/3.0.1" + "source": "https://github.com/sebastianbergmann/php-text-template/tree/5.0.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-text-template", + "type": "tidelift" } ], - "time": "2023-08-31T14:07:24+00:00" + "time": "2026-10-03T04:51:29+00:00" }, { "name": "phpunit/php-timer", - "version": "6.0.0", + "version": "8.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d" + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/e2a2d67966e740530f4a3343fe2e030ffdc1161d", - "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^12.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "8.0-dev" } }, "autoload": { @@ -1605,7 +1640,8 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/6.0.0" + "security": "https://github.com/sebastianbergmann/php-timer/security/policy", + "source": "https://github.com/sebastianbergmann/php-timer/tree/8.0.0" }, "funding": [ { @@ -1613,20 +1649,20 @@ "type": "github" } ], - "time": "2023-02-03T06:57:52+00:00" + "time": "2025-02-07T04:59:38+00:00" }, { "name": "phpunit/phpunit", - "version": "10.5.66", + "version": "12.5.38", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "747c9889613d0b3ffa08b74272e50ed3b8fa6d72" + "reference": "1e87ad87fe57665a7f6e99a6e467329c11e851cc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/747c9889613d0b3ffa08b74272e50ed3b8fa6d72", - "reference": "747c9889613d0b3ffa08b74272e50ed3b8fa6d72", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1e87ad87fe57665a7f6e99a6e467329c11e851cc", + "reference": "1e87ad87fe57665a7f6e99a6e467329c11e851cc", "shasum": "" }, "require": { @@ -1639,26 +1675,23 @@ "myclabs/deep-copy": "^1.14.0", "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", - "php": ">=8.1", - "phpunit/php-code-coverage": "^10.1.16", - "phpunit/php-file-iterator": "^4.1.0", - "phpunit/php-invoker": "^4.0.0", - "phpunit/php-text-template": "^3.0.1", - "phpunit/php-timer": "^6.0.0", - "sebastian/cli-parser": "^2.0.1", - "sebastian/code-unit": "^2.0.0", - "sebastian/comparator": "^5.0.5", - "sebastian/diff": "^5.1.1", - "sebastian/environment": "^6.1.0", - "sebastian/exporter": "^5.1.4", - "sebastian/global-state": "^6.0.2", - "sebastian/object-enumerator": "^5.0.0", - "sebastian/recursion-context": "^5.0.2", - "sebastian/type": "^4.0.0", - "sebastian/version": "^4.0.1" - }, - "suggest": { - "ext-soap": "To be able to generate mocks based on WSDL files" + "php": ">=8.3", + "phpunit/php-code-coverage": "^12.5.8", + "phpunit/php-file-iterator": "^6.0.2", + "phpunit/php-invoker": "^6.0.0", + "phpunit/php-text-template": "^5.0.1", + "phpunit/php-timer": "^8.0.0", + "sebastian/cli-parser": "^4.2.1", + "sebastian/comparator": "^7.1.8", + "sebastian/diff": "^7.0.1", + "sebastian/environment": "^8.1.2", + "sebastian/exporter": "^7.0.3", + "sebastian/global-state": "^8.0.3", + "sebastian/object-enumerator": "^7.0.0", + "sebastian/recursion-context": "^7.0.1", + "sebastian/type": "^6.0.4", + "sebastian/version": "^6.0.1", + "staabm/side-effects-detector": "^1.0.5" }, "bin": [ "phpunit" @@ -1666,7 +1699,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "10.5-dev" + "dev-main": "12.5-dev" } }, "autoload": { @@ -1698,7 +1731,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.66" + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.38" }, "funding": [ { @@ -1706,7 +1739,7 @@ "type": "other" } ], - "time": "2026-10-05T05:46:26+00:00" + "time": "2026-10-05T05:49:30+00:00" }, { "name": "psr/container", @@ -1813,28 +1846,28 @@ }, { "name": "sebastian/cli-parser", - "version": "2.0.1", + "version": "4.2.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "c34583b87e7b7a8055bf6c450c2c77ce32a24084" + "reference": "7d05781b13f7dec9043a629a21d086ed74582a15" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/c34583b87e7b7a8055bf6c450c2c77ce32a24084", - "reference": "c34583b87e7b7a8055bf6c450c2c77ce32a24084", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/7d05781b13f7dec9043a629a21d086ed74582a15", + "reference": "7d05781b13f7dec9043a629a21d086ed74582a15", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^12.5.25" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.0-dev" + "dev-main": "4.2-dev" } }, "autoload": { @@ -1858,155 +1891,59 @@ "support": { "issues": "https://github.com/sebastianbergmann/cli-parser/issues", "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/2.0.1" + "source": "https://github.com/sebastianbergmann/cli-parser/tree/4.2.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" - } - ], - "time": "2024-03-02T07:12:49+00:00" - }, - { - "name": "sebastian/code-unit", - "version": "2.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "a81fee9eef0b7a76af11d121767abc44c104e503" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/a81fee9eef0b7a76af11d121767abc44c104e503", - "reference": "a81fee9eef0b7a76af11d121767abc44c104e503", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "2.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Collection of value objects that represent the PHP code units", - "homepage": "https://github.com/sebastianbergmann/code-unit", - "support": { - "issues": "https://github.com/sebastianbergmann/code-unit/issues", - "source": "https://github.com/sebastianbergmann/code-unit/tree/2.0.0" - }, - "funding": [ + }, { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2023-02-03T06:58:43+00:00" - }, - { - "name": "sebastian/code-unit-reverse-lookup", - "version": "3.0.0", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", - "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", - "shasum": "" - }, - "require": { - "php": ">=8.1" - }, - "require-dev": { - "phpunit/phpunit": "^10.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.0-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - } - ], - "description": "Looks up which function or method a line of code belongs to", - "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/3.0.0" - }, - "funding": [ + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, { - "url": "https://github.com/sebastianbergmann", - "type": "github" + "url": "https://tidelift.com/funding/github/packagist/sebastian/cli-parser", + "type": "tidelift" } ], - "time": "2023-02-03T06:59:15+00:00" + "time": "2026-05-17T05:29:34+00:00" }, { "name": "sebastian/comparator", - "version": "5.0.5", + "version": "7.1.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "55dfef806eb7dfeb6e7a6935601fef866f8ca48d" + "reference": "7c65c1e79836812819705b473a90c12399542485" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55dfef806eb7dfeb6e7a6935601fef866f8ca48d", - "reference": "55dfef806eb7dfeb6e7a6935601fef866f8ca48d", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/7c65c1e79836812819705b473a90c12399542485", + "reference": "7c65c1e79836812819705b473a90c12399542485", "shasum": "" }, "require": { "ext-dom": "*", "ext-mbstring": "*", - "php": ">=8.1", - "sebastian/diff": "^5.0", - "sebastian/exporter": "^5.0" + "php": ">=8.3", + "sebastian/diff": "^7.0", + "sebastian/exporter": "^7.0.3" }, "require-dev": { - "phpunit/phpunit": "^10.5" + "phpunit/phpunit": "^12.5.25" + }, + "suggest": { + "ext-bcmath": "For comparing BcMath\\Number objects" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "7.1-dev" } }, "autoload": { @@ -2046,7 +1983,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.5" + "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.8" }, "funding": [ { @@ -2066,33 +2003,33 @@ "type": "tidelift" } ], - "time": "2026-01-24T09:25:16+00:00" + "time": "2026-05-21T04:45:25+00:00" }, { "name": "sebastian/complexity", - "version": "3.2.0", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "68ff824baeae169ec9f2137158ee529584553799" + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/68ff824baeae169ec9f2137158ee529584553799", - "reference": "68ff824baeae169ec9f2137158ee529584553799", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/bad4316aba5303d0221f43f8cee37eb58d384bbb", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb", "shasum": "" }, "require": { - "nikic/php-parser": "^4.18 || ^5.0", - "php": ">=8.1" + "nikic/php-parser": "^5.0", + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^12.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.2-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -2116,7 +2053,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/complexity/issues", "security": "https://github.com/sebastianbergmann/complexity/security/policy", - "source": "https://github.com/sebastianbergmann/complexity/tree/3.2.0" + "source": "https://github.com/sebastianbergmann/complexity/tree/5.0.0" }, "funding": [ { @@ -2124,33 +2061,33 @@ "type": "github" } ], - "time": "2023-12-21T08:37:17+00:00" + "time": "2025-02-07T04:55:25+00:00" }, { "name": "sebastian/diff", - "version": "5.1.1", + "version": "7.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e" + "reference": "cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/c41e007b4b62af48218231d6c2275e4c9b975b2e", - "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6", + "reference": "cd4cabe39f8a4e8ee6818ba99f10a05561ea4ad6", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^10.0", - "symfony/process": "^6.4" + "phpunit/phpunit": "^12.5.33", + "symfony/process": "^7.4.17" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.1-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -2183,35 +2120,47 @@ "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", "security": "https://github.com/sebastianbergmann/diff/security/policy", - "source": "https://github.com/sebastianbergmann/diff/tree/5.1.1" + "source": "https://github.com/sebastianbergmann/diff/tree/7.0.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/diff", + "type": "tidelift" } ], - "time": "2024-03-02T07:15:17+00:00" + "time": "2026-08-25T15:35:54+00:00" }, { "name": "sebastian/environment", - "version": "6.1.0", + "version": "8.1.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "8074dbcd93529b357029f5cc5058fd3e43666984" + "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/8074dbcd93529b357029f5cc5058fd3e43666984", - "reference": "8074dbcd93529b357029f5cc5058fd3e43666984", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/9d32c685773823b1983e256ae4ecd48a10d6e439", + "reference": "9d32c685773823b1983e256ae4ecd48a10d6e439", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^12.5.26" }, "suggest": { "ext-posix": "*" @@ -2219,7 +2168,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "6.1-dev" + "dev-main": "8.1-dev" } }, "autoload": { @@ -2247,42 +2196,54 @@ "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", "security": "https://github.com/sebastianbergmann/environment/security/policy", - "source": "https://github.com/sebastianbergmann/environment/tree/6.1.0" + "source": "https://github.com/sebastianbergmann/environment/tree/8.1.2" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/environment", + "type": "tidelift" } ], - "time": "2024-03-23T08:47:14+00:00" + "time": "2026-05-25T13:40:20+00:00" }, { "name": "sebastian/exporter", - "version": "5.1.4", + "version": "7.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "0735b90f4da94969541dac1da743446e276defa6" + "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/0735b90f4da94969541dac1da743446e276defa6", - "reference": "0735b90f4da94969541dac1da743446e276defa6", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", + "reference": "c5e21b5de653ce0a769fb36f5cdfcb5e7a32cf23", "shasum": "" }, "require": { "ext-mbstring": "*", - "php": ">=8.1", - "sebastian/recursion-context": "^5.0" + "php": ">=8.3", + "sebastian/recursion-context": "^7.0.1" }, "require-dev": { - "phpunit/phpunit": "^10.5" + "phpunit/phpunit": "^12.5.25" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.1-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -2325,7 +2286,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", "security": "https://github.com/sebastianbergmann/exporter/security/policy", - "source": "https://github.com/sebastianbergmann/exporter/tree/5.1.4" + "source": "https://github.com/sebastianbergmann/exporter/tree/7.0.3" }, "funding": [ { @@ -2345,35 +2306,35 @@ "type": "tidelift" } ], - "time": "2025-09-24T06:09:11+00:00" + "time": "2026-05-20T04:37:17+00:00" }, { "name": "sebastian/global-state", - "version": "6.0.2", + "version": "8.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "987bafff24ecc4c9ac418cab1145b96dd6e9cbd9" + "reference": "b164d3274d6537ab462591c5755f76a8f5b1aae9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/987bafff24ecc4c9ac418cab1145b96dd6e9cbd9", - "reference": "987bafff24ecc4c9ac418cab1145b96dd6e9cbd9", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/b164d3274d6537ab462591c5755f76a8f5b1aae9", + "reference": "b164d3274d6537ab462591c5755f76a8f5b1aae9", "shasum": "" }, "require": { - "php": ">=8.1", - "sebastian/object-reflector": "^3.0", - "sebastian/recursion-context": "^5.0" + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0.1" }, "require-dev": { "ext-dom": "*", - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^12.5.28" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "8.0-dev" } }, "autoload": { @@ -2399,41 +2360,53 @@ "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", "security": "https://github.com/sebastianbergmann/global-state/security/policy", - "source": "https://github.com/sebastianbergmann/global-state/tree/6.0.2" + "source": "https://github.com/sebastianbergmann/global-state/tree/8.0.3" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/global-state", + "type": "tidelift" } ], - "time": "2024-03-02T07:19:19+00:00" + "time": "2026-06-01T15:10:33+00:00" }, { "name": "sebastian/lines-of-code", - "version": "2.0.2", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "856e7f6a75a84e339195d48c556f23be2ebf75d0" + "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/856e7f6a75a84e339195d48c556f23be2ebf75d0", - "reference": "856e7f6a75a84e339195d48c556f23be2ebf75d0", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d543b8ef219dcd8da262cbb958639a96bedba10e", + "reference": "d543b8ef219dcd8da262cbb958639a96bedba10e", "shasum": "" }, "require": { - "nikic/php-parser": "^4.18 || ^5.0", - "php": ">=8.1" + "nikic/php-parser": "^5.7.0", + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^12.5.25" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -2457,42 +2430,54 @@ "support": { "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/2.0.2" + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/4.0.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/lines-of-code", + "type": "tidelift" } ], - "time": "2023-12-21T08:38:20+00:00" + "time": "2026-05-19T16:22:07+00:00" }, { "name": "sebastian/object-enumerator", - "version": "5.0.0", + "version": "7.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906" + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/202d0e344a580d7f7d04b3fafce6933e59dae906", - "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894", "shasum": "" }, "require": { - "php": ">=8.1", - "sebastian/object-reflector": "^3.0", - "sebastian/recursion-context": "^5.0" + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^12.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -2514,7 +2499,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/5.0.0" + "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/7.0.0" }, "funding": [ { @@ -2522,32 +2508,32 @@ "type": "github" } ], - "time": "2023-02-03T07:08:32+00:00" + "time": "2025-02-07T04:57:48+00:00" }, { "name": "sebastian/object-reflector", - "version": "3.0.0", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "24ed13d98130f0e7122df55d06c5c4942a577957" + "reference": "4bfa827c969c98be1e527abd576533293c634f6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/24ed13d98130f0e7122df55d06c5c4942a577957", - "reference": "24ed13d98130f0e7122df55d06c5c4942a577957", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/4bfa827c969c98be1e527abd576533293c634f6a", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^12.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -2569,7 +2555,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/3.0.0" + "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/5.0.0" }, "funding": [ { @@ -2577,32 +2564,32 @@ "type": "github" } ], - "time": "2023-02-03T07:06:18+00:00" + "time": "2025-02-07T04:58:17+00:00" }, { "name": "sebastian/recursion-context", - "version": "5.0.2", + "version": "7.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "5d32fe257a9b39cb63146924d6b4e32a22d4502a" + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5d32fe257a9b39cb63146924d6b4e32a22d4502a", - "reference": "5d32fe257a9b39cb63146924d6b4e32a22d4502a", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^10.5" + "phpunit/phpunit": "^12.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -2633,7 +2620,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/5.0.2" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/7.0.1" }, "funding": [ { @@ -2653,32 +2640,32 @@ "type": "tidelift" } ], - "time": "2026-08-11T05:27:39+00:00" + "time": "2025-08-13T04:44:59+00:00" }, { "name": "sebastian/type", - "version": "4.0.0", + "version": "6.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "462699a16464c3944eefc02ebdd77882bd3925bf" + "reference": "82ff822c2edc46724be9f7411d3163021f602773" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/462699a16464c3944eefc02ebdd77882bd3925bf", - "reference": "462699a16464c3944eefc02ebdd77882bd3925bf", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/82ff822c2edc46724be9f7411d3163021f602773", + "reference": "82ff822c2edc46724be9f7411d3163021f602773", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.3" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^12.5.25" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -2701,37 +2688,50 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/4.0.0" + "security": "https://github.com/sebastianbergmann/type/security/policy", + "source": "https://github.com/sebastianbergmann/type/tree/6.0.4" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/type", + "type": "tidelift" } ], - "time": "2023-02-03T07:10:45+00:00" + "time": "2026-05-20T06:45:45+00:00" }, { "name": "sebastian/version", - "version": "4.0.1", + "version": "6.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17" + "reference": "9e935a16187e14f39b0e79910dabd614972cdb26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17", - "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/9e935a16187e14f39b0e79910dabd614972cdb26", + "reference": "9e935a16187e14f39b0e79910dabd614972cdb26", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -2754,15 +2754,28 @@ "homepage": "https://github.com/sebastianbergmann/version", "support": { "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/4.0.1" + "security": "https://github.com/sebastianbergmann/version/security/policy", + "source": "https://github.com/sebastianbergmann/version/tree/6.0.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/version", + "type": "tidelift" } ], - "time": "2023-02-07T11:34:05+00:00" + "time": "2026-10-04T05:50:08+00:00" }, { "name": "squizlabs/php_codesniffer", @@ -2848,6 +2861,58 @@ ], "time": "2026-08-06T02:45:27+00:00" }, + { + "name": "staabm/side-effects-detector", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/staabm/side-effects-detector.git", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "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", + "autoload": { + "classmap": [ + "lib/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A static analysis tool to detect side effects in PHP code", + "keywords": [ + "static analysis" + ], + "support": { + "issues": "https://github.com/staabm/side-effects-detector/issues", + "source": "https://github.com/staabm/side-effects-detector/tree/1.0.5" + }, + "funding": [ + { + "url": "https://github.com/staabm", + "type": "github" + } + ], + "time": "2024-10-20T05:08:20+00:00" + }, { "name": "symfony/config", "version": "v7.4.17", @@ -3489,23 +3554,23 @@ }, { "name": "theseer/tokenizer", - "version": "1.3.1", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "b7489ce515e168639d17feec34b8847c326b0b3c" + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b7489ce515e168639d17feec34b8847c326b0b3c", - "reference": "b7489ce515e168639d17feec34b8847c326b0b3c", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4", "shasum": "" }, "require": { "ext-dom": "*", "ext-tokenizer": "*", "ext-xmlwriter": "*", - "php": "^7.2 || ^8.0" + "php": "^8.1" }, "type": "library", "autoload": { @@ -3527,7 +3592,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.3.1" + "source": "https://github.com/theseer/tokenizer/tree/2.0.1" }, "funding": [ { @@ -3535,7 +3600,7 @@ "type": "github" } ], - "time": "2025-11-17T20:03:58+00:00" + "time": "2025-12-08T11:19:18+00:00" } ], "aliases": [], diff --git a/test/phpunit/InputData/FileUploadInputDataTest.php b/test/phpunit/InputData/FileUploadInputDataTest.php index 3f6e670..d63d0e2 100644 --- a/test/phpunit/InputData/FileUploadInputDataTest.php +++ b/test/phpunit/InputData/FileUploadInputDataTest.php @@ -6,9 +6,7 @@ use GT\Input\Test\Helper\Reflection; class FileUploadInputDataTest extends TestCase { - /** - * @dataProvider dataFilesSuperglobal - */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataFilesSuperglobal")] public function testNormaliseArray(array $files) { // The $_FILES superglobal is an odd shape. Depending on the use of [] in the // parameter name, the contained uploadData array(s) could contain either strings diff --git a/test/phpunit/InputTest.php b/test/phpunit/InputTest.php index 06f6f78..46ed0ea 100644 --- a/test/phpunit/InputTest.php +++ b/test/phpunit/InputTest.php @@ -88,7 +88,7 @@ public function testGetPutFileStream_notPutRequest():void { $input->getPutFileStream(); } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testGetQueryString(array $get, array $post):void { $input = new Input($get, $post); @@ -105,7 +105,7 @@ public function testGetQueryString(array $get, array $post):void { } } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testGetPostField(array $get, array $post):void { $input = new Input($get, $post); @@ -122,7 +122,7 @@ public function testGetPostField(array $get, array $post):void { } } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testGetFileFieldSingle(array $get, array $post):void { $files = self::FAKE_FILE; $input = new Input($get, $post, $files); @@ -163,21 +163,21 @@ public function testGetFile_uploadInPostWithoutFiles_throwsHelpfulException():vo $input->getFile("upload"); } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testGetInvalidDataType(array $get, array $post):void { self::expectException(InvalidInputMethodException::class); $input = new Input($get, $post); $input->get("test", "WRONG_TYPE"); } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testGetAllInvalidDataType(array $get, array $post):void { self::expectException(InvalidInputMethodException::class); $input = new Input($get, $post); $input->getAll("WRONG_TYPE"); } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testGetAllQueryString(array $get, array $post):void { $input = new Input($get, $post); $queryString = $input->getAll(Input::DATA_QUERYSTRING); @@ -191,7 +191,7 @@ public function testGetAllQueryString(array $get, array $post):void { } } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testGetAllPostFields(array $get, array $post):void { $input = new Input($get, $post); $postFields = $input->getAll(Input::DATA_BODY); @@ -205,7 +205,7 @@ public function testGetAllPostFields(array $get, array $post):void { } } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testGetAllFileFields(array $get, array $post):void { $files = self::FAKE_FILE; $input = new Input($get, $post, $files); @@ -224,7 +224,7 @@ public function testGetAllFileFields(array $get, array $post):void { } } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testGetAll(array $get, array $post):void { $input = new Input($get, $post); $combined = $input->getAll(); @@ -239,7 +239,7 @@ public function testGetAll(array $get, array $post):void { self::assertFalse(isset($combined->thisDoesNotExist)); } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testGetAllMethods(array $get, array $post):void { $input = new Input($get, $post); $getVariables = $input->getAll(Input::DATA_QUERYSTRING); @@ -251,7 +251,7 @@ public function testGetAllMethods(array $get, array $post):void { } } - /** @dataProvider dataRandomString */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomString")] public function testDo(string $doName):void { $input = new Input(["do" => $doName]); $trigger = $input->do($doName); @@ -259,14 +259,14 @@ public function testDo(string $doName):void { self::assertTrue($trigger->fire(), "Triggers should fire"); } - /** @dataProvider dataRandomString */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomString")] public function testNotDo(string $doName):void { $input = new Input(["do" => "submit"]); $trigger = $input->do($doName); self::assertFalse($trigger->fire()); } - /** @dataProvider dataRandomString */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomString")] public function testWhen(string $whenName):void { $whenValue = uniqid("whenValue"); @@ -281,7 +281,7 @@ public function testWhen(string $whenName):void { self::assertTrue($trigger->fire()); } - /** @dataProvider dataRandomString */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomString")] public function testNotWhen(string $whenName):void { $whenValue = uniqid("whenValue"); @@ -295,7 +295,7 @@ public function testNotWhen(string $whenName):void { self::assertFalse($trigger->fire()); } - /** @dataProvider dataRandomString */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomString")] public function testWhenKey(string $whenName):void { $whenValue = uniqid("whenValue"); @@ -307,7 +307,7 @@ public function testWhenKey(string $whenName):void { self::assertTrue($trigger->fire()); } - /** @dataProvider dataRandomString */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomString")] public function testWhenNotKey(string $whenName):void { $whenValue = uniqid("whenValue"); @@ -319,7 +319,7 @@ public function testWhenNotKey(string $whenName):void { self::assertFalse($trigger->fire()); } - /** @dataProvider dataRandomString */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomString")] public function testWhenKeySurrounded(string $whenName):void { $whenValue = uniqid("whenValue"); @@ -333,7 +333,7 @@ public function testWhenKeySurrounded(string $whenName):void { self::assertTrue($trigger->fire()); } - /** @dataProvider dataRandomString */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomString")] public function testWhenKeyMultiple(string $whenName):void { $whenName2 = "$whenName-2"; $whenValue = uniqid("whenValue"); @@ -349,7 +349,7 @@ public function testWhenKeyMultiple(string $whenName):void { self::assertTrue($trigger->fire()); } - /** @dataProvider dataRandomString */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomString")] public function testWhenKeyMultipleMissing(string $whenName):void { $whenName2 = "$whenName-2"; $whenValue = uniqid("whenValue"); @@ -365,7 +365,7 @@ public function testWhenKeyMultipleMissing(string $whenName):void { self::assertFalse($trigger->fire()); } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testWithExist(array $get, array $post):void { $withKeys = []; @@ -393,7 +393,7 @@ public function testWithExist(array $get, array $post):void { } } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testWithNotExist(array $get, array $post):void { $withKeys = []; $combined = array_merge($get, $post); @@ -408,7 +408,7 @@ public function testWithNotExist(array $get, array $post):void { $trigger = $input->with(...$withKeys); } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testWithAll(array $get, array $post):void { $input = new Input($get, $post); $trigger = $input->withAll(); @@ -425,7 +425,7 @@ public function testWithAll(array $get, array $post):void { } } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testNoWith(array $get, array $post):void { $post["example-trigger"] = "testtesttest"; @@ -444,7 +444,7 @@ public function testNoWith(array $get, array $post):void { } } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testWithout(array $get, array $post):void { $withoutKeys = []; @@ -479,7 +479,7 @@ public function testWithout(array $get, array $post):void { } } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testSettingOwnData(array $get, array $post):void { $input = new Input($get, $post); $originalInputCount = count($input); @@ -489,7 +489,7 @@ public function testSettingOwnData(array $get, array $post):void { self::assertEquals($originalInputCount + 1, count($input)); } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testUnsettingOwnData(array $get, array $post):void { $input = new Input($get, $post); $originalInputCount = count($input); @@ -569,7 +569,7 @@ public function testGetDateTimeFromFormat():void { self::assertEquals($dateTime, $input->getDateTime("a-date-in-rss-format")); } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testContains($get, $post):void { $files = self::FAKE_FILE; $input = new Input($get, $post, $files); @@ -585,7 +585,7 @@ public function testContains($get, $post):void { } } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testNotContains($get, $post):void { $files = self::FAKE_FILE; $input = new Input($get, $post, $files); @@ -599,7 +599,7 @@ public function testNotContains($get, $post):void { } } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testContainsIndividualParts($get, $post):void { $files = self::FAKE_FILE; $input = new Input($get, $post, $files); @@ -668,7 +668,7 @@ public function testContainsIndividualParts($get, $post):void { } } - /** @dataProvider dataRandomGetPost */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataRandomGetPost")] public function testContainsThrowsExceptionOnIncorrectType($get, $post) { self::expectException(InvalidInputMethodException::class); $input = new Input($get, $post); diff --git a/test/phpunit/Trigger/TriggerTest.php b/test/phpunit/Trigger/TriggerTest.php index b5521be..c11e7a3 100644 --- a/test/phpunit/Trigger/TriggerTest.php +++ b/test/phpunit/Trigger/TriggerTest.php @@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase; class TriggerTest extends TestCase { - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testWhenMatchesInput(Input $input):void { $whenCriteria = Helper::getRandomWhenCriteria($input, true); $trigger = new Trigger($input); @@ -17,7 +17,7 @@ public function testWhenMatchesInput(Input $input):void { self::assertTrue($trigger->fire()); } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testWhenNotMatchesInput(Input $input):void { $whenCriteria = Helper::getRandomWhenCriteria($input, false); $trigger = new Trigger($input); @@ -47,7 +47,7 @@ public function testWhenWithKVP():void { self::assertTrue($sut->fire()); } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testWithSingleKey(Input $input):void { $keys = Helper::getKeysFromInput($input, 1); $trigger = new Trigger($input); @@ -64,7 +64,7 @@ public function testWithSingleKey(Input $input):void { self::assertcount(1, $callbackKeys); } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testFiresOr(Input $input):void { $trigger = new Trigger($input); $trigger->when("this-does-not-exist"); @@ -82,7 +82,7 @@ public function testFiresOr(Input $input):void { self::assertGreaterThan(0, $orCount); } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testExceptionOrThrown(Input $input):void { self::expectException(CallOrOutOfSequenceException::class); $trigger = new Trigger($input); @@ -92,7 +92,7 @@ public function testExceptionOrThrown(Input $input):void { }); } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testWithMultipleKeysSequential(Input $input):void { $keys = Helper::getKeysFromInput($input, rand(2, 100)); $trigger = new Trigger($input); @@ -113,7 +113,7 @@ public function testWithMultipleKeysSequential(Input $input):void { } } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testWithMultipleKeysVariableArguments(Input $input):void { $keys = Helper::getKeysFromInput($input, rand(2, 100)); $trigger = new Trigger($input); @@ -129,7 +129,7 @@ public function testWithMultipleKeysVariableArguments(Input $input):void { self::assertEquals($keys, $callbackKeys); } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testWithoutSingleKey(Input $input):void { $keys = Helper::getKeysFromInput($input, 1); $trigger = new Trigger($input); @@ -145,7 +145,7 @@ public function testWithoutSingleKey(Input $input):void { self::assertNotContains($keys[0], $callbackKeys); } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testWithoutMultipleKeysSequential(Input $input):void { $keys = Helper::getKeysFromInput($input, rand(2, 100)); $trigger = new Trigger($input); @@ -166,7 +166,7 @@ public function testWithoutMultipleKeysSequential(Input $input):void { } } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testWithoutMultipleKeysVariableArguments(Input $input):void { $keys = Helper::getKeysFromInput($input, rand(2, 100)); $trigger = new Trigger($input); @@ -184,7 +184,7 @@ public function testWithoutMultipleKeysVariableArguments(Input $input):void { } } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testWithAll(Input $input):void { $trigger = new Trigger($input); $trigger->withAll(); @@ -201,7 +201,7 @@ public function testWithAll(Input $input):void { } } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testSetTriggerMatch(Input $input):void { $keys = Helper::getKeysFromInput($input, rand(2, 100)); $trigger = new Trigger($input); @@ -213,7 +213,7 @@ public function testSetTriggerMatch(Input $input):void { self::assertTrue($trigger->fire()); } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testSetTriggerNoMatch(Input $input):void { $keys = Helper::getKeysFromInput($input, rand(2, 100)); $trigger = new Trigger($input); @@ -225,7 +225,7 @@ public function testSetTriggerNoMatch(Input $input):void { self::assertFalse($trigger->fire()); } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testSetTriggerSomeMatch(Input $input):void { $keys = Helper::getKeysFromInput($input, rand(2, 100)); $trigger = new Trigger($input); @@ -242,7 +242,7 @@ public function testSetTriggerSomeMatch(Input $input):void { self::assertFalse($trigger->fire()); } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testCallWithArgs(Input $input):void { $trigger = new Trigger($input); $param1 = "one"; @@ -263,7 +263,7 @@ public function testCallWithArgs(Input $input):void { self::assertContains($param3, $callbackArgs); } - /** @dataProvider dataInput */ + #[\PHPUnit\Framework\Attributes\DataProvider("dataInput")] public function testFiresWithNoMatches(Input $input):void { $trigger = new Trigger($input); self::assertTrue($trigger->fire());