summaryrefslogtreecommitdiff
path: root/ext/intl/tests/breakiter___construct.phpt
blob: d957b1182d3f17b8cc03292d676ba7e4f951cc18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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 invalid context in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d