more tests #19

Merged
rrise merged 5 commits from chore/more-tests-jwt into master 2025-11-16 16:40:12 +00:00
3 changed files with 47 additions and 50 deletions
Showing only changes of commit ae5684bc88 - Show all commits

View File

@@ -28,7 +28,7 @@
"require-dev": { "require-dev": {
"phpunit/phpunit": "^12.4", "phpunit/phpunit": "^12.4",
"mockery/mockery": "^1.6", "mockery/mockery": "^1.6",
"squizlabs/php_codesniffer": "^3.12", "squizlabs/php_codesniffer": "^4.0",
"lendable/composer-license-checker": "^1.2", "lendable/composer-license-checker": "^1.2",
"phpstan/phpstan": "^2.1.31", "phpstan/phpstan": "^2.1.31",
"kwn/php-rdkafka-stubs": "^2.2" "kwn/php-rdkafka-stubs": "^2.2"

85
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "3554ee67a6c8a798d673b42dc9de3093", "content-hash": "856fdd307835b635e6e912a2d5028515",
"packages": [ "packages": [
{ {
"name": "adhocore/cli", "name": "adhocore/cli",
@@ -300,16 +300,16 @@
}, },
{ {
"name": "google/protobuf", "name": "google/protobuf",
"version": "v4.33.0", "version": "v4.33.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/protocolbuffers/protobuf-php.git", "url": "https://github.com/protocolbuffers/protobuf-php.git",
"reference": "b50269e23204e5ae859a326ec3d90f09efe3047d" "reference": "0cd73ccf0cd26c3e72299cce1ea6144091a57e12"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/b50269e23204e5ae859a326ec3d90f09efe3047d", "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/0cd73ccf0cd26c3e72299cce1ea6144091a57e12",
"reference": "b50269e23204e5ae859a326ec3d90f09efe3047d", "reference": "0cd73ccf0cd26c3e72299cce1ea6144091a57e12",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -338,13 +338,13 @@
"proto" "proto"
], ],
"support": { "support": {
"source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.33.0" "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.33.1"
}, },
"time": "2025-10-15T20:10:28+00:00" "time": "2025-11-12T21:58:05+00:00"
}, },
{ {
"name": "illuminate/collections", "name": "illuminate/collections",
"version": "v12.38.0", "version": "v12.38.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/collections.git", "url": "https://github.com/illuminate/collections.git",
@@ -403,7 +403,7 @@
}, },
{ {
"name": "illuminate/conditionable", "name": "illuminate/conditionable",
"version": "v12.38.0", "version": "v12.38.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/conditionable.git", "url": "https://github.com/illuminate/conditionable.git",
@@ -449,7 +449,7 @@
}, },
{ {
"name": "illuminate/container", "name": "illuminate/container",
"version": "v12.38.0", "version": "v12.38.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/container.git", "url": "https://github.com/illuminate/container.git",
@@ -510,7 +510,7 @@
}, },
{ {
"name": "illuminate/contracts", "name": "illuminate/contracts",
"version": "v12.38.0", "version": "v12.38.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/contracts.git", "url": "https://github.com/illuminate/contracts.git",
@@ -558,7 +558,7 @@
}, },
{ {
"name": "illuminate/database", "name": "illuminate/database",
"version": "v12.38.0", "version": "v12.38.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/database.git", "url": "https://github.com/illuminate/database.git",
@@ -629,7 +629,7 @@
}, },
{ {
"name": "illuminate/macroable", "name": "illuminate/macroable",
"version": "v12.38.0", "version": "v12.38.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/macroable.git", "url": "https://github.com/illuminate/macroable.git",
@@ -675,7 +675,7 @@
}, },
{ {
"name": "illuminate/support", "name": "illuminate/support",
"version": "v12.38.0", "version": "v12.38.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/illuminate/support.git", "url": "https://github.com/illuminate/support.git",
@@ -2370,16 +2370,16 @@
}, },
{ {
"name": "spiral/roadrunner", "name": "spiral/roadrunner",
"version": "v2025.1.4", "version": "v2025.1.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/roadrunner-server/roadrunner.git", "url": "https://github.com/roadrunner-server/roadrunner.git",
"reference": "ff25363b72dd6ab2bd642d741db13b30d52d254f" "reference": "d68bee29eb689c5310f8ede935c95a13bd7cc153"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/roadrunner-server/roadrunner/zipball/ff25363b72dd6ab2bd642d741db13b30d52d254f", "url": "https://api.github.com/repos/roadrunner-server/roadrunner/zipball/d68bee29eb689c5310f8ede935c95a13bd7cc153",
"reference": "ff25363b72dd6ab2bd642d741db13b30d52d254f", "reference": "d68bee29eb689c5310f8ede935c95a13bd7cc153",
"shasum": "" "shasum": ""
}, },
"type": "metapackage", "type": "metapackage",
@@ -2405,10 +2405,9 @@
"homepage": "https://roadrunner.dev/", "homepage": "https://roadrunner.dev/",
"support": { "support": {
"chat": "https://discord.gg/V6EK4he", "chat": "https://discord.gg/V6EK4he",
"docs": "https://roadrunner.dev/docs", "docs": "https://docs.roadrunner.dev/",
"forum": "https://forum.roadrunner.dev/",
"issues": "https://github.com/roadrunner-server/roadrunner/issues", "issues": "https://github.com/roadrunner-server/roadrunner/issues",
"source": "https://github.com/roadrunner-server/roadrunner/tree/v2025.1.4" "source": "https://github.com/roadrunner-server/roadrunner/tree/v2025.1.5"
}, },
"funding": [ "funding": [
{ {
@@ -2416,7 +2415,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2025-10-02T16:43:06+00:00" "time": "2025-11-13T17:24:29+00:00"
}, },
{ {
"name": "spiral/roadrunner-http", "name": "spiral/roadrunner-http",
@@ -4172,16 +4171,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "12.4.2", "version": "12.4.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "a94ea4d26d865875803b23aaf78c3c2c670ea2ea" "reference": "d8f644d8d9bb904867f7a0aeb1bd306e0d966949"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a94ea4d26d865875803b23aaf78c3c2c670ea2ea", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d8f644d8d9bb904867f7a0aeb1bd306e0d966949",
"reference": "a94ea4d26d865875803b23aaf78c3c2c670ea2ea", "reference": "d8f644d8d9bb904867f7a0aeb1bd306e0d966949",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -4249,7 +4248,7 @@
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues", "issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy", "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
"source": "https://github.com/sebastianbergmann/phpunit/tree/12.4.2" "source": "https://github.com/sebastianbergmann/phpunit/tree/12.4.3"
}, },
"funding": [ "funding": [
{ {
@@ -4273,7 +4272,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2025-10-30T08:41:39+00:00" "time": "2025-11-13T07:20:26+00:00"
}, },
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",
@@ -5174,26 +5173,26 @@
}, },
{ {
"name": "squizlabs/php_codesniffer", "name": "squizlabs/php_codesniffer",
"version": "3.13.5", "version": "4.0.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
"reference": "0ca86845ce43291e8f5692c7356fccf3bcf02bf4" "reference": "0525c73950de35ded110cffafb9892946d7771b5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/0ca86845ce43291e8f5692c7356fccf3bcf02bf4", "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/0525c73950de35ded110cffafb9892946d7771b5",
"reference": "0ca86845ce43291e8f5692c7356fccf3bcf02bf4", "reference": "0525c73950de35ded110cffafb9892946d7771b5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-simplexml": "*", "ext-simplexml": "*",
"ext-tokenizer": "*", "ext-tokenizer": "*",
"ext-xmlwriter": "*", "ext-xmlwriter": "*",
"php": ">=5.4.0" "php": ">=7.2.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" "phpunit/phpunit": "^8.4.0 || ^9.3.4 || ^10.5.32 || 11.3.3 - 11.5.28 || ^11.5.31"
}, },
"bin": [ "bin": [
"bin/phpcbf", "bin/phpcbf",
@@ -5218,7 +5217,7 @@
"homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors" "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors"
} }
], ],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", "description": "PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.",
"homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer", "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
"keywords": [ "keywords": [
"phpcs", "phpcs",
@@ -5249,7 +5248,7 @@
"type": "thanks_dev" "type": "thanks_dev"
} }
], ],
"time": "2025-11-04T16:30:35+00:00" "time": "2025-11-10T16:43:36+00:00"
}, },
{ {
"name": "staabm/side-effects-detector", "name": "staabm/side-effects-detector",
@@ -5895,16 +5894,16 @@
}, },
{ {
"name": "theseer/tokenizer", "name": "theseer/tokenizer",
"version": "1.2.3", "version": "1.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/theseer/tokenizer.git", "url": "https://github.com/theseer/tokenizer.git",
"reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" "reference": "d74205c497bfbca49f34d4bc4c19c17e22db4ebb"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", "url": "https://api.github.com/repos/theseer/tokenizer/zipball/d74205c497bfbca49f34d4bc4c19c17e22db4ebb",
"reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", "reference": "d74205c497bfbca49f34d4bc4c19c17e22db4ebb",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -5933,7 +5932,7 @@
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
"support": { "support": {
"issues": "https://github.com/theseer/tokenizer/issues", "issues": "https://github.com/theseer/tokenizer/issues",
"source": "https://github.com/theseer/tokenizer/tree/1.2.3" "source": "https://github.com/theseer/tokenizer/tree/1.3.0"
}, },
"funding": [ "funding": [
{ {
@@ -5941,7 +5940,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2024-03-03T12:36:25+00:00" "time": "2025-11-13T13:44:09+00:00"
} }
], ],
"aliases": [], "aliases": [],
@@ -5953,5 +5952,5 @@
"php": "^8.4" "php": "^8.4"
}, },
"platform-dev": {}, "platform-dev": {},
"plugin-api-version": "2.6.0" "plugin-api-version": "2.9.0"
} }

View File

@@ -11,7 +11,10 @@ class HandlesMessageTest extends Unit
{ {
public function testGetsClass(): void public function testGetsClass(): void
{ {
$reflection = new \ReflectionClass(TestClass::class); $class = new #[HandlesMessage('Siteworxpro\Tests\Attributes\TestClass')] class {
};
$reflection = new \ReflectionClass($class);
$attributes = $reflection->getAttributes(HandlesMessage::class); $attributes = $reflection->getAttributes(HandlesMessage::class);
$this->assertCount(1, $attributes); $this->assertCount(1, $attributes);
@@ -20,8 +23,3 @@ class HandlesMessageTest extends Unit
$this->assertEquals('Siteworxpro\Tests\Attributes\TestClass', $instance->getMessageClass()); $this->assertEquals('Siteworxpro\Tests\Attributes\TestClass', $instance->getMessageClass());
} }
} }
#[HandlesMessage('Siteworxpro\Tests\Attributes\TestClass')]
class TestClass // @codingStandardsIgnoreLine
{
}