|
20 | 20 | use Biurad\Annotations\AnnotationLoader; |
21 | 21 | use Doctrine\Common\Annotations\AnnotationRegistry; |
22 | 22 | use PHPUnit\Framework\TestCase; |
23 | | -use ReflectionClassConstant; |
24 | | -use ReflectionMethod; |
25 | | -use ReflectionParameter; |
26 | | -use ReflectionProperty; |
27 | 23 | use Spiral\Attributes\AnnotationReader; |
28 | 24 | use Spiral\Attributes\AttributeReader; |
29 | 25 |
|
@@ -93,25 +89,25 @@ public function testAttach(): void |
93 | 89 | ], $names); |
94 | 90 |
|
95 | 91 | $this->assertEquals([ |
96 | | - ['handler' => ReflectionMethod::class, 'priority' => 24], |
97 | | - ['handler' => ReflectionProperty::class, 'priority' => 0], |
98 | | - ['handler' => ReflectionMethod::class, 'priority' => 0], |
99 | | - ['handler' => ReflectionMethod::class, 'priority' => 14], |
100 | | - ['handler' => ReflectionMethod::class, 'priority' => 1], |
101 | | - ['handler' => ReflectionMethod::class, 'priority' => 0], |
102 | | - ['handler' => ReflectionMethod::class, 'priority' => 0], |
103 | | - ['handler' => ReflectionMethod::class, 'priority' => 24], |
104 | | - ['handler' => ReflectionProperty::class, 'priority' => 0], |
105 | | - ['handler' => ReflectionMethod::class, 'priority' => 24], |
106 | | - ['handler' => ReflectionProperty::class, 'priority' => 0], |
107 | | - ['handler' => ReflectionMethod::class, 'priority' => 24], |
108 | | - ['handler' => ReflectionProperty::class, 'priority' => 0], |
109 | | - ['handler' => ReflectionMethod::class, 'priority' => 0], |
110 | | - ['handler' => ReflectionMethod::class, 'priority' => 0], |
111 | | - ['handler' => ReflectionProperty::class, 'priority' => 4], |
112 | | - ['handler' => ReflectionMethod::class, 'priority' => 323], |
113 | | - ['handler' => ReflectionProperty::class, 'priority' => 0], |
114 | | - ['handler' => ReflectionProperty::class, 'priority' => 0], |
| 92 | + ['handler' => \ReflectionMethod::class, 'priority' => 24], |
| 93 | + ['handler' => \ReflectionProperty::class, 'priority' => 0], |
| 94 | + ['handler' => \ReflectionMethod::class, 'priority' => 0], |
| 95 | + ['handler' => \ReflectionMethod::class, 'priority' => 14], |
| 96 | + ['handler' => \ReflectionMethod::class, 'priority' => 1], |
| 97 | + ['handler' => \ReflectionMethod::class, 'priority' => 0], |
| 98 | + ['handler' => \ReflectionMethod::class, 'priority' => 0], |
| 99 | + ['handler' => \ReflectionMethod::class, 'priority' => 24], |
| 100 | + ['handler' => \ReflectionProperty::class, 'priority' => 0], |
| 101 | + ['handler' => \ReflectionMethod::class, 'priority' => 24], |
| 102 | + ['handler' => \ReflectionProperty::class, 'priority' => 0], |
| 103 | + ['handler' => \ReflectionMethod::class, 'priority' => 24], |
| 104 | + ['handler' => \ReflectionProperty::class, 'priority' => 0], |
| 105 | + ['handler' => \ReflectionMethod::class, 'priority' => 0], |
| 106 | + ['handler' => \ReflectionMethod::class, 'priority' => 0], |
| 107 | + ['handler' => \ReflectionProperty::class, 'priority' => 4], |
| 108 | + ['handler' => \ReflectionMethod::class, 'priority' => 323], |
| 109 | + ['handler' => \ReflectionProperty::class, 'priority' => 0], |
| 110 | + ['handler' => \ReflectionProperty::class, 'priority' => 0], |
115 | 111 | ['handler' => Fixtures\Annotation\Valid\SingleClass::class, 'priority' => 0], |
116 | 112 | ], $result); |
117 | 113 | } |
@@ -142,16 +138,16 @@ public function testAttachAttribute(): void |
142 | 138 | } |
143 | 139 |
|
144 | 140 | $this->assertEquals([ |
145 | | - 'attribute_specific_name' => ['handler' => ReflectionMethod::class, 'priority' => 0], |
146 | | - 'attribute_specific_none' => ['handler' => ReflectionMethod::class, 'priority' => 14], |
147 | | - 'attribute_property' => ['handler' => ReflectionProperty::class, 'priority' => 0], |
148 | | - 'attribute_constant' => ['handler' => ReflectionClassConstant::class, 'priority' => 0], |
149 | | - 'attribute_method_property' => ['handler' => ReflectionParameter::class, 'priority' => 4], |
150 | | - 'attribute_added_specific_name' => ['handler' => ReflectionMethod::class, 'priority' => 0], |
151 | | - 'attribute_added_specific_none' => ['handler' => ReflectionMethod::class, 'priority' => 14], |
152 | | - 'attribute_added_property' => ['handler' => ReflectionProperty::class, 'priority' => 0], |
153 | | - 'attribute_added_constant' => ['handler' => ReflectionClassConstant::class, 'priority' => 0], |
154 | | - 'attribute_added_method_property' => ['handler' => ReflectionParameter::class, 'priority' => 4], |
| 141 | + 'attribute_specific_name' => ['handler' => \ReflectionMethod::class, 'priority' => 0], |
| 142 | + 'attribute_specific_none' => ['handler' => \ReflectionMethod::class, 'priority' => 14], |
| 143 | + 'attribute_property' => ['handler' => \ReflectionProperty::class, 'priority' => 0], |
| 144 | + 'attribute_constant' => ['handler' => \ReflectionClassConstant::class, 'priority' => 0], |
| 145 | + 'attribute_method_property' => ['handler' => \ReflectionParameter::class, 'priority' => 4], |
| 146 | + 'attribute_added_specific_name' => ['handler' => \ReflectionMethod::class, 'priority' => 0], |
| 147 | + 'attribute_added_specific_none' => ['handler' => \ReflectionMethod::class, 'priority' => 14], |
| 148 | + 'attribute_added_property' => ['handler' => \ReflectionProperty::class, 'priority' => 0], |
| 149 | + 'attribute_added_constant' => ['handler' => \ReflectionClassConstant::class, 'priority' => 0], |
| 150 | + 'attribute_added_method_property' => ['handler' => \ReflectionParameter::class, 'priority' => 4], |
155 | 151 | ], $result); |
156 | 152 | } |
157 | 153 | } |
0 commit comments