bug75090.phpt 553 B

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