php-8.0.30-src/ext/intl/tests/resourcebundle_double_ctor....

19 lines
382 B
PHP

--TEST--
ResourceBundle double construction should not be allowed
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
--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