summaryrefslogtreecommitdiff
path: root/ext/intl/tests/breakiter_current_basic.phpt
blob: 26f1d5f46e2e7438f57571e04de6c5fc9fba5edb (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
--TEST--
BreakIterator::current(): basic test
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "pt_PT");

$bi = BreakIterator::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());
?>
==DONE==
--EXPECT--
int(0)
int(0)
int(0)
int(3)
int(3)
==DONE==