mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
Add test for GH-14109
This commit is contained in:
parent
929bbb23d1
commit
2c8731db33
16
ext/zend_test/tests/gh14109.phpt
Normal file
16
ext/zend_test/tests/gh14109.phpt
Normal 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) {
|
||||
}
|
Loading…
Reference in New Issue
Block a user