1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Files
archived-php-src/ext/intl/tests/resourcebundle_double_ctor.phpt
T
2020-08-26 10:25:15 +02:00

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