xref: /PHP-8.1/ext/intl/tests/bug75090.phpt (revision 74859783)
1--TEST--
2Bug #75090 Constants of parent IntlCalendar class not inherited
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7class Foo extends IntlCalendar {}
8
9$fooRef = new ReflectionClass(Foo::class);
10$intlGregorianCalendarRef = new ReflectionClass(IntlGregorianCalendar::class);
11$intlCalendarRef = new ReflectionClass(IntlCalendar::class);
12
13var_dump(
14    count($fooRef->getConstants()) === count($intlCalendarRef->getConstants()),
15    count($intlGregorianCalendarRef->getConstants()) === count($intlCalendarRef->getConstants())
16);
17?>
18--EXPECT--
19bool(true)
20bool(true)
21