summaryrefslogtreecommitdiff
path: root/ext/intl/tests/breakiter_current_basic.phpt
blob: 6715d08f554bed1f4a762e8f4888694a0ac6699c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
IntlBreakIterator::current(): basic test
--SKIPIF--
<?php
if (!extension_loaded('intl'))
	die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "pt_PT");

$bi = IntlBreakIterator::createWordInstance('pt');
var_dump($bi->current());
$bi->setText('foo bar trans zoo bee');

var_dump($bi->first());
var_dump($bi->current());
var_dump($bi->next());
var_dump($bi->current());
?>
--EXPECT--
int(0)
int(0)
int(0)
int(3)
int(3)