summaryrefslogtreecommitdiff
path: root/ext/intl/tests/breakiter___construct.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/tests/breakiter___construct.phpt')
-rw-r--r--ext/intl/tests/breakiter___construct.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/intl/tests/breakiter___construct.phpt b/ext/intl/tests/breakiter___construct.phpt
new file mode 100644
index 0000000000..a818075a30
--- /dev/null
+++ b/ext/intl/tests/breakiter___construct.phpt
@@ -0,0 +1,14 @@
+--TEST--
+IntlBreakIterator::__construct() should not be callable
+--SKIPIF--
+<?php
+if (!extension_loaded('intl'))
+ die('skip intl extension not enabled');
+--FILE--
+<?php
+ini_set("intl.error_level", E_WARNING);
+
+new IntlBreakIterator();
+--EXPECTF--
+
+Fatal error: Call to private IntlBreakIterator::__construct() from invalid context in %s on line %d