2121use Spiral \Tests \Attributes \Reader \Fixture \Annotation \MethodAnnotation ;
2222use Spiral \Tests \Attributes \Reader \Fixture \Annotation \MethodParameterAnnotation ;
2323use Spiral \Tests \Attributes \Reader \Fixture \Annotation \PropertyAnnotation ;
24+ use Spiral \Tests \Attributes \Reader \Fixture \ClassWithAnnotatedInterface ;
2425use Spiral \Tests \Attributes \Reader \Fixture \ClassWithAnnotatedTrait ;
2526use Spiral \Tests \Attributes \Reader \Fixture \UndefinedMeta ;
2627use Spiral \Tests \Attributes \TestCase ;
@@ -99,6 +100,10 @@ public function testClassMetadataCount(): void
99100 $ this ->assertCount ($ this ->classMetadataCount ,
100101 $ this ->getClassMetadata (ClassWithAnnotatedTrait::class)
101102 );
103+
104+ $ this ->assertCount ($ this ->classMetadataCount ,
105+ $ this ->getClassMetadata (ClassWithAnnotatedInterface::class)
106+ );
102107 }
103108
104109 public function testClassMetadataObjects (): void
@@ -118,6 +123,10 @@ public function testClassMetadataObjects(): void
118123 foreach ($ this ->getClassMetadata (ClassWithAnnotatedTrait::class) as $ actual ) {
119124 $ this ->assertEquals ($ expected , $ actual );
120125 }
126+
127+ foreach ($ this ->getClassMetadata (ClassWithAnnotatedInterface::class) as $ actual ) {
128+ $ this ->assertEquals ($ expected , $ actual );
129+ }
121130 }
122131
123132 public function testConstantMetadataCount (): void
@@ -169,6 +178,10 @@ public function testMethodMetadataCount(): void
169178 $ this ->assertCount ($ this ->methodMetadataCount ,
170179 $ this ->getMethodMetadata (AnnotatedClass::class, 'method ' )
171180 );
181+
182+ $ this ->assertCount ($ this ->methodMetadataCount ,
183+ $ this ->getMethodMetadata (ClassWithAnnotatedInterface::class, 'method ' )
184+ );
172185 }
173186
174187 public function testMethodMetadataObjects (): void
@@ -191,6 +204,10 @@ public function testMethodParameterMetadataCount(): void
191204 $ this ->assertCount ($ this ->methodParameterMetadataCount ,
192205 $ this ->getMethodParameterMetadata (AnnotatedClass::class, 'method ' , 'parameter ' )
193206 );
207+
208+ $ this ->assertCount ($ this ->methodParameterMetadataCount ,
209+ $ this ->getMethodParameterMetadata (ClassWithAnnotatedInterface::class, 'method ' , 'parameter ' )
210+ );
194211 }
195212
196213 public function testMethodParameterMetadataObjects (): void
0 commit comments