diff options
Diffstat (limited to 'ext/intl/tests/breakiter___construct.phpt')
-rw-r--r-- | ext/intl/tests/breakiter___construct.phpt | 13 |
1 files changed, 13 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..a379b19f92 --- /dev/null +++ b/ext/intl/tests/breakiter___construct.phpt @@ -0,0 +1,13 @@ +--TEST-- +BreakIterator::__construct() should not be callable +--SKIPIF-- +if (!extension_loaded('intl')) + die('skip intl extension not enabled'); +--FILE-- +<?php +ini_set("intl.error_level", E_WARNING); + +new BreakIterator(); +--EXPECTF-- + +Fatal error: Call to private BreakIterator::__construct() from invalid context in %s on line %d |