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

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

var_dump($bi->current());
var_dump($bi->last());
var_dump($bi->current());
?>
--EXPECT--
int(0)
int(13)
int(13)