diff --git a/composer.json b/composer.json index 032ad69..fea20ed 100644 --- a/composer.json +++ b/composer.json @@ -51,7 +51,6 @@ } }, "require-dev": { - "doctrine/annotations": "^1.12 || ^2.0", "phpunit/phpunit": "^10.1", "mockery/mockery": "^1.5", "spiral/boot": "^3.12", diff --git a/tests/Attribute/JobHandlerTest.php b/tests/Attribute/JobHandlerTest.php index 00f07c8..628cb62 100644 --- a/tests/Attribute/JobHandlerTest.php +++ b/tests/Attribute/JobHandlerTest.php @@ -9,9 +9,7 @@ use Spiral\Attributes\Factory; use Spiral\Queue\Attribute\JobHandler; use Spiral\Tests\Queue\Attribute\Stub\ExtendedJobHandler; -use Spiral\Tests\Queue\Attribute\Stub\JobHandlerAnnotation; use Spiral\Tests\Queue\Attribute\Stub\JobHandlerAttribute; -use Spiral\Tests\Queue\Attribute\Stub\WithExtendedJobHandlerAnnotation; use Spiral\Tests\Queue\Attribute\Stub\WithExtendedJobHandlerAttribute; use Spiral\Tests\Queue\Attribute\Stub\WithoutJobHandler; @@ -28,9 +26,7 @@ public function testJobHandler(string $class, ?JobHandler $expected): void public static function classesProvider(): \Traversable { yield [WithoutJobHandler::class, null]; - yield [JobHandlerAnnotation::class, new JobHandler('test')]; yield [JobHandlerAttribute::class, new JobHandler('test')]; - yield [WithExtendedJobHandlerAnnotation::class, new ExtendedJobHandler()]; yield [WithExtendedJobHandlerAttribute::class, new ExtendedJobHandler()]; } } diff --git a/tests/Attribute/RetryPolicyTest.php b/tests/Attribute/RetryPolicyTest.php index e335bea..d8354ea 100644 --- a/tests/Attribute/RetryPolicyTest.php +++ b/tests/Attribute/RetryPolicyTest.php @@ -9,12 +9,9 @@ use Spiral\Attributes\Factory; use Spiral\Queue\Attribute\RetryPolicy; use Spiral\Tests\Queue\Attribute\Stub\ExtendedRetryPolicy; -use Spiral\Tests\Queue\Attribute\Stub\WithDefaultRetryPolicyAnnotation; use Spiral\Tests\Queue\Attribute\Stub\WithDefaultRetryPolicyAttribute; -use Spiral\Tests\Queue\Attribute\Stub\WithExtendedRetryPolicyAnnotation; use Spiral\Tests\Queue\Attribute\Stub\WithExtendedRetryPolicyAttribute; use Spiral\Tests\Queue\Attribute\Stub\WithoutRetryPolicy; -use Spiral\Tests\Queue\Attribute\Stub\WithRetryPolicyAnnotation; use Spiral\Tests\Queue\Attribute\Stub\WithRetryPolicyAttribute; final class RetryPolicyTest extends TestCase @@ -30,11 +27,8 @@ public function testRetryPolicy(string $class, ?RetryPolicy $expected): void public static function classesProvider(): \Traversable { yield [WithoutRetryPolicy::class, null]; - yield [WithDefaultRetryPolicyAnnotation::class, new RetryPolicy()]; yield [WithDefaultRetryPolicyAttribute::class, new RetryPolicy()]; - yield [WithRetryPolicyAnnotation::class, new RetryPolicy(5, 3_000, 2.5)]; yield [WithRetryPolicyAttribute::class, new RetryPolicy(5, 3_000, 2.5)]; yield [WithExtendedRetryPolicyAttribute::class, new ExtendedRetryPolicy()]; - yield [WithExtendedRetryPolicyAnnotation::class, new ExtendedRetryPolicy()]; } } diff --git a/tests/Attribute/SerializerTest.php b/tests/Attribute/SerializerTest.php index a93e2b0..ff0c6dd 100644 --- a/tests/Attribute/SerializerTest.php +++ b/tests/Attribute/SerializerTest.php @@ -9,9 +9,7 @@ use Spiral\Attributes\Factory; use Spiral\Queue\Attribute\Serializer; use Spiral\Tests\Queue\Attribute\Stub\ExtendedSerializer; -use Spiral\Tests\Queue\Attribute\Stub\SerializerAnnotation; use Spiral\Tests\Queue\Attribute\Stub\SerializerAttribute; -use Spiral\Tests\Queue\Attribute\Stub\WithExtendedSerializerAnnotation; use Spiral\Tests\Queue\Attribute\Stub\WithExtendedSerializerAttribute; use Spiral\Tests\Queue\Attribute\Stub\WithoutSerializer; @@ -28,9 +26,7 @@ public function testSerializer(string $class, ?Serializer $expected): void public static function classesProvider(): \Traversable { yield [WithoutSerializer::class, null]; - yield [SerializerAnnotation::class, new Serializer('test')]; yield [SerializerAttribute::class, new Serializer('test')]; - yield [WithExtendedSerializerAnnotation::class, new ExtendedSerializer()]; yield [WithExtendedSerializerAttribute::class, new ExtendedSerializer()]; } } diff --git a/tests/Attribute/Stub/JobHandlerAnnotation.php b/tests/Attribute/Stub/JobHandlerAnnotation.php deleted file mode 100644 index 483292e..0000000 --- a/tests/Attribute/Stub/JobHandlerAnnotation.php +++ /dev/null @@ -1,14 +0,0 @@ -