php-src/ext/intl/tests/breakiter___construct.phpt
Gina Peter Banyard c42e6d62d8
ext/intl: modernize tests (#19392)
This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
2025-08-06 23:33:48 +01:00

15 lines
298 B
PHP

--TEST--
IntlBreakIterator::__construct() should not be callable
--EXTENSIONS--
intl
--FILE--
<?php
try {
new IntlBreakIterator();
} catch (Throwable $e) {
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
}
?>
--EXPECT--
Error: Call to private IntlBreakIterator::__construct() from global scope