diff --git a/composer.json b/composer.json index 63a23e7..30a9408 100644 --- a/composer.json +++ b/composer.json @@ -23,18 +23,18 @@ }, "require-dev": { "ext-curl": "*", - "doctrine/coding-standard": "^10.0.0", - "ergebnis/composer-normalize": "^2.28.3", + "doctrine/coding-standard": "^11.0.0", + "ergebnis/composer-normalize": "^2.29", "infection/infection": "^0.26.16", - "laminas/laminas-diactoros": "^2.20", + "laminas/laminas-diactoros": "^2.22", "php-http/curl-client": "^2.2.1", - "phpunit/phpunit": "^9.5.26", - "psalm/plugin-phpunit": "^0.18.0", + "phpunit/phpunit": "^9.5.27", + "psalm/plugin-phpunit": "^0.18.4", "react/child-process": "^0.6.5", "react/http": "^1.8", "roave/security-advisories": "dev-latest", "squizlabs/php_codesniffer": "^3.7.1", - "vimeo/psalm": "^5.0" + "vimeo/psalm": "^5.2" }, "config": { "sort-packages": true, diff --git a/composer.lock b/composer.lock index ed147e5..52757de 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": "738a844eb0c00e55df0d02d843877d76", + "content-hash": "f158ef3d361ab8665c81939c5f9823b5", "packages": [ { "name": "clue/stream-filter", @@ -1471,22 +1471,22 @@ }, { "name": "doctrine/coding-standard", - "version": "10.0.0", + "version": "11.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/coding-standard.git", - "reference": "7903671d7d33c231c8921058b7c14b8f57cbacb7" + "reference": "b6660e1e57dd1c0a38d335b7f6495b0c06abc270" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/coding-standard/zipball/7903671d7d33c231c8921058b7c14b8f57cbacb7", - "reference": "7903671d7d33c231c8921058b7c14b8f57cbacb7", + "url": "https://api.github.com/repos/doctrine/coding-standard/zipball/b6660e1e57dd1c0a38d335b7f6495b0c06abc270", + "reference": "b6660e1e57dd1c0a38d335b7f6495b0c06abc270", "shasum": "" }, "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7", "php": "^7.2 || ^8.0", - "slevomat/coding-standard": "^8.2", + "slevomat/coding-standard": "^8.6.2", "squizlabs/php_codesniffer": "^3.7" }, "type": "phpcodesniffer-standard", @@ -1511,6 +1511,7 @@ "code", "coding", "cs", + "dev", "doctrine", "rules", "sniffer", @@ -1520,9 +1521,9 @@ ], "support": { "issues": "https://github.com/doctrine/coding-standard/issues", - "source": "https://github.com/doctrine/coding-standard/tree/10.0.0" + "source": "https://github.com/doctrine/coding-standard/tree/11.0.0" }, - "time": "2022-08-26T10:53:05+00:00" + "time": "2022-12-11T22:31:43+00:00" }, { "name": "doctrine/instantiator", @@ -2004,6 +2005,67 @@ }, "time": "2022-03-02T22:36:06+00:00" }, + { + "name": "fidry/cpu-core-counter", + "version": "0.4.0", + "source": { + "type": "git", + "url": "https://github.com/theofidry/cpu-core-counter.git", + "reference": "666cb04a02f2801f3b19955fc23c824f9018bf64" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/666cb04a02f2801f3b19955fc23c824f9018bf64", + "reference": "666cb04a02f2801f3b19955fc23c824f9018bf64", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "fidry/makefile": "^0.2.0", + "phpstan/extension-installer": "^1.2.0", + "phpstan/phpstan": "^1.9.2", + "phpstan/phpstan-deprecation-rules": "^1.0.0", + "phpstan/phpstan-phpunit": "^1.2.2", + "phpstan/phpstan-strict-rules": "^1.4.4", + "phpunit/phpunit": "^9.5.26 || ^8.5.31", + "theofidry/php-cs-fixer-config": "^1.0", + "webmozarts/strict-phpunit": "^7.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Fidry\\CpuCoreCounter\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Théo FIDRY", + "email": "theo.fidry@gmail.com" + } + ], + "description": "Tiny utility to get the number of CPU cores.", + "keywords": [ + "CPU", + "core" + ], + "support": { + "issues": "https://github.com/theofidry/cpu-core-counter/issues", + "source": "https://github.com/theofidry/cpu-core-counter/tree/0.4.0" + }, + "funding": [ + { + "url": "https://github.com/theofidry", + "type": "github" + } + ], + "time": "2022-12-10T21:26:31+00:00" + }, { "name": "fig/http-message-util", "version": "1.1.5", @@ -3165,16 +3227,16 @@ }, { "name": "phpstan/phpdoc-parser", - "version": "1.13.1", + "version": "1.15.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "aac44118344d197e6d5f7c6cee91885f0a89acdd" + "reference": "6ff970a7101acfe99b3048e4bbfbc094e55c5b04" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/aac44118344d197e6d5f7c6cee91885f0a89acdd", - "reference": "aac44118344d197e6d5f7c6cee91885f0a89acdd", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/6ff970a7101acfe99b3048e4bbfbc094e55c5b04", + "reference": "6ff970a7101acfe99b3048e4bbfbc094e55c5b04", "shasum": "" }, "require": { @@ -3204,22 +3266,22 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.13.1" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.15.0" }, - "time": "2022-11-20T08:52:26+00:00" + "time": "2022-12-07T16:12:39+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.19", + "version": "9.2.20", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "c77b56b63e3d2031bd8997fcec43c1925ae46559" + "reference": "af7463c955007de36db0c5e26d03e2f933c2e980" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c77b56b63e3d2031bd8997fcec43c1925ae46559", - "reference": "c77b56b63e3d2031bd8997fcec43c1925ae46559", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/af7463c955007de36db0c5e26d03e2f933c2e980", + "reference": "af7463c955007de36db0c5e26d03e2f933c2e980", "shasum": "" }, "require": { @@ -3275,7 +3337,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.19" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.20" }, "funding": [ { @@ -3283,7 +3345,7 @@ "type": "github" } ], - "time": "2022-11-18T07:47:47+00:00" + "time": "2022-12-13T07:49:28+00:00" }, { "name": "phpunit/php-file-iterator", @@ -4671,12 +4733,12 @@ "source": { "type": "git", "url": "https://github.com/Roave/SecurityAdvisories.git", - "reference": "cd9af30140f6f34d9132986f4c6f04cf5e90cdc8" + "reference": "a9271310987d5cd362141476d9fff15c189dc204" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/cd9af30140f6f34d9132986f4c6f04cf5e90cdc8", - "reference": "cd9af30140f6f34d9132986f4c6f04cf5e90cdc8", + "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/a9271310987d5cd362141476d9fff15c189dc204", + "reference": "a9271310987d5cd362141476d9fff15c189dc204", "shasum": "" }, "conflict": { @@ -5094,7 +5156,7 @@ "thelia/thelia": ">=2.1-beta.1,<2.1.3", "theonedemon/phpwhois": "<=4.2.5", "thinkcmf/thinkcmf": "<=5.1.7", - "thorsten/phpmyfaq": "<3.1.8", + "thorsten/phpmyfaq": "<3.1.9", "tinymce/tinymce": "<5.10.7|>=6,<6.3.1", "titon/framework": ">=0,<9.9.99", "tobiasbg/tablepress": "<= 2.0-RC1", @@ -5104,12 +5166,12 @@ "tribalsystems/zenario": "<=9.3.57595", "truckersmp/phpwhois": "<=4.3.1", "twig/twig": "<1.44.7|>=2,<2.15.3|>=3,<3.4.3", - "typo3/cms": ">=6.2,<6.2.30|>=7,<7.6.32|>=8,<8.7.38|>=9,<9.5.29|>=10,<10.4.32|>=11,<11.5.16", + "typo3/cms": ">=6.2,<6.2.30|>=7,<7.6.32|>=8,<8.7.38|>=9,<9.5.29|>=10,<10.4.33|>=11,<11.5.20|>=12,<12.1.1", "typo3/cms-backend": ">=7,<=7.6.50|>=8,<=8.7.39|>=9,<=9.5.24|>=10,<=10.4.13|>=11,<=11.1", - "typo3/cms-core": ">=6.2,<=6.2.56|>=7,<7.6.58|>=8,<8.7.48|>=9,<9.5.37|>=10,<10.4.32|>=11,<11.5.16", + "typo3/cms-core": "<8.7.49|>=9,<9.5.38|>=10,<10.4.33|>=11,<11.5.20|>=12,<12.1.1", "typo3/cms-form": ">=8,<=8.7.39|>=9,<=9.5.24|>=10,<=10.4.13|>=11,<=11.1", "typo3/flow": ">=1,<1.0.4|>=1.1,<1.1.1|>=2,<2.0.1|>=2.3,<2.3.16|>=3,<3.0.12|>=3.1,<3.1.10|>=3.2,<3.2.13|>=3.3,<3.3.13|>=4,<4.0.6", - "typo3/html-sanitizer": ">=1,<1.0.7|>=2,<2.0.16", + "typo3/html-sanitizer": ">=1,<1.5|>=2,<2.1.1", "typo3/neos": ">=1.1,<1.1.3|>=1.2,<1.2.13|>=2,<2.0.4|>=2.3,<2.3.99|>=3,<3.0.20|>=3.1,<3.1.18|>=3.2,<3.2.14|>=3.3,<3.3.23|>=4,<4.0.17|>=4.1,<4.1.16|>=4.2,<4.2.12|>=4.3,<4.3.3", "typo3/phar-stream-wrapper": ">=1,<2.1.1|>=3,<3.1.1", "typo3/swiftmailer": ">=4.1,<4.1.99|>=5.4,<5.4.5", @@ -5208,7 +5270,7 @@ "type": "tidelift" } ], - "time": "2022-12-09T21:04:12+00:00" + "time": "2022-12-13T18:04:19+00:00" }, { "name": "sanmai/later", @@ -6299,32 +6361,32 @@ }, { "name": "slevomat/coding-standard", - "version": "8.6.4", + "version": "8.7.0", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "8a02c83e59c3230a2a4367b29956a2f2b56e3a24" + "reference": "326d195209d196be02f8c2a0034529262fc7ffcc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/8a02c83e59c3230a2a4367b29956a2f2b56e3a24", - "reference": "8a02c83e59c3230a2a4367b29956a2f2b56e3a24", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/326d195209d196be02f8c2a0034529262fc7ffcc", + "reference": "326d195209d196be02f8c2a0034529262fc7ffcc", "shasum": "" }, "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7", "php": "^7.2 || ^8.0", - "phpstan/phpdoc-parser": ">=1.11.0 <1.14.0", + "phpstan/phpdoc-parser": ">=1.15.0 <1.16.0", "squizlabs/php_codesniffer": "^3.7.1" }, "require-dev": { "phing/phing": "2.17.4", "php-parallel-lint/php-parallel-lint": "1.3.2", - "phpstan/phpstan": "1.4.10|1.9.2", - "phpstan/phpstan-deprecation-rules": "1.0.0", - "phpstan/phpstan-phpunit": "1.0.0|1.2.2", + "phpstan/phpstan": "1.4.10|1.9.3", + "phpstan/phpstan-deprecation-rules": "1.1.0", + "phpstan/phpstan-phpunit": "1.0.0|1.3.1", "phpstan/phpstan-strict-rules": "1.4.4", - "phpunit/phpunit": "7.5.20|8.5.21|9.5.26" + "phpunit/phpunit": "7.5.20|8.5.21|9.5.27" }, "type": "phpcodesniffer-standard", "extra": { @@ -6348,7 +6410,7 @@ ], "support": { "issues": "https://github.com/slevomat/coding-standard/issues", - "source": "https://github.com/slevomat/coding-standard/tree/8.6.4" + "source": "https://github.com/slevomat/coding-standard/tree/8.7.0" }, "funding": [ { @@ -6360,7 +6422,7 @@ "type": "tidelift" } ], - "time": "2022-11-14T09:26:24+00:00" + "time": "2022-12-13T15:02:08+00:00" }, { "name": "squizlabs/php_codesniffer", @@ -7469,16 +7531,16 @@ }, { "name": "vimeo/psalm", - "version": "5.1.0", + "version": "5.2.0", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "4defa177c89397c5e14737a80fe4896584130674" + "reference": "fb685a16df3050d4c18d8a4100fe83abe6458cba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/4defa177c89397c5e14737a80fe4896584130674", - "reference": "4defa177c89397c5e14737a80fe4896584130674", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/fb685a16df3050d4c18d8a4100fe83abe6458cba", + "reference": "fb685a16df3050d4c18d8a4100fe83abe6458cba", "shasum": "" }, "require": { @@ -7497,6 +7559,7 @@ "ext-tokenizer": "*", "felixfbecker/advanced-json-rpc": "^3.1", "felixfbecker/language-server-protocol": "^1.5.2", + "fidry/cpu-core-counter": "^0.4.0", "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0", "nikic/php-parser": "^4.13", "openlss/lib-array2xml": "^1.0", @@ -7567,9 +7630,9 @@ ], "support": { "issues": "https://github.com/vimeo/psalm/issues", - "source": "https://github.com/vimeo/psalm/tree/5.1.0" + "source": "https://github.com/vimeo/psalm/tree/5.2.0" }, - "time": "2022-12-02T01:23:35+00:00" + "time": "2022-12-12T08:18:56+00:00" } ], "aliases": [], diff --git a/test/Integration/BaseClientTest.php b/test/Integration/BaseClientTest.php index e359458..8f7b584 100644 --- a/test/Integration/BaseClientTest.php +++ b/test/Integration/BaseClientTest.php @@ -31,6 +31,7 @@ class BaseClientTest extends MockServerTestCase protected function setUp(): void { parent::setUp(); + $this->client = new BaseClient( MockServer::VALID_TOKEN, self::EXPECTED_REPOSITORY, diff --git a/test/Integration/MockServerTestCase.php b/test/Integration/MockServerTestCase.php index 5f9561f..69e78ac 100644 --- a/test/Integration/MockServerTestCase.php +++ b/test/Integration/MockServerTestCase.php @@ -25,6 +25,7 @@ abstract class MockServerTestCase extends TestCase protected function setUp(): void { parent::setUp(); + $this->httpClient()->clearState(); } diff --git a/test/Unit/DefinitionTest.php b/test/Unit/DefinitionTest.php index 571ff55..943a081 100644 --- a/test/Unit/DefinitionTest.php +++ b/test/Unit/DefinitionTest.php @@ -20,6 +20,7 @@ final class DefinitionTest extends TestCase protected function setUp(): void { parent::setUp(); + $this->type = Definition::new( 'custom', 'Custom Type',