xref: /PHP-7.4/ext/intl/tests/bug75090.phpt (revision be9edd83)
1--TEST--
2Bug #75090 Constants of parent IntlCalendar class not inherited
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
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===DONE===
19--EXPECT--
20bool(true)
21bool(true)
22===DONE===
23