Skip to content

Commit 2c8731d

Browse files
committed
Add test for GH-14109
1 parent 929bbb2 commit 2c8731d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ext/zend_test/tests/gh14109.phpt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
GH-14109: User class extending internal class with attributes
3+
--EXTENSIONS--
4+
zend_test
5+
--FILE--
6+
<?php
7+
class Test extends ZendAttributeTest {}
8+
foreach ((new ReflectionClassConstant(Test::class, 'TEST_CONST'))->getAttributes() as $attribute) {
9+
var_dump($attribute->newInstance());
10+
}
11+
?>
12+
--EXPECTF--
13+
object(ZendTestRepeatableAttribute)#%d (0) {
14+
}
15+
object(ZendTestRepeatableAttribute)#%d (0) {
16+
}

0 commit comments

Comments
 (0)