summaryrefslogtreecommitdiff
path: root/ext/intl/tests/breakiter___construct.phpt
blob: 16ca32bf184f6d8e31c5fe1222c95021641e3a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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: Uncaught Error: Call to private IntlBreakIterator::__construct() from global scope in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d