1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00
Files
archived-php-src/ext/intl/tests/resourcebundle_double_ctor.phpt
T
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

19 lines
334 B
PHP

--TEST--
ResourceBundle double construction should not be allowed
--EXTENSIONS--
intl
--FILE--
<?php
include "resourcebundle.inc";
$r = new ResourceBundle('en_US', BUNDLE);
try {
$r->__construct('en_US', BUNDLE);
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
ResourceBundle object is already constructed