blob: 91e9919c15ecb138fcf23cbaeb45870c7f764f7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--TEST--
IntlBreakIterator::getText(): arg errors
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
$bi = new IntlRuleBasedBreakIterator('[\p{Letter}]+;');
var_dump($bi->getText(array()));
--EXPECTF--
Warning: IntlBreakIterator::getText() expects exactly 0 parameters, 1 given in %s on line %d
Warning: IntlBreakIterator::getText(): breakiter_get_text: bad arguments in %s on line %d
bool(false)
|