xref: /php-src/ext/zend_test/tests/gh14109.phpt (revision 2c8731db)
1--TEST--
2GH-14109: User class extending internal class with attributes
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7class Test extends ZendAttributeTest {}
8foreach ((new ReflectionClassConstant(Test::class, 'TEST_CONST'))->getAttributes() as $attribute) {
9    var_dump($attribute->newInstance());
10}
11?>
12--EXPECTF--
13object(ZendTestRepeatableAttribute)#%d (0) {
14}
15object(ZendTestRepeatableAttribute)#%d (0) {
16}
17