Add test for GH-14109

This commit is contained in:
Ilija Tovilo 2024-05-06 16:03:02 +02:00
parent 929bbb23d1
commit 2c8731db33
No known key found for this signature in database
GPG Key ID: A4F5D403F118200A

View File

@ -0,0 +1,16 @@
--TEST--
GH-14109: User class extending internal class with attributes
--EXTENSIONS--
zend_test
--FILE--
<?php
class Test extends ZendAttributeTest {}
foreach ((new ReflectionClassConstant(Test::class, 'TEST_CONST'))->getAttributes() as $attribute) {
var_dump($attribute->newInstance());
}
?>
--EXPECTF--
object(ZendTestRepeatableAttribute)#%d (0) {
}
object(ZendTestRepeatableAttribute)#%d (0) {
}