mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
18 lines
360 B
PHP
18 lines
360 B
PHP
--TEST--
|
|
IntlBreakIterator::getText(): 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');
|
|
var_dump($bi->getText());
|
|
$bi->setText('foo bar');
|
|
var_dump($bi->getText());
|
|
--EXPECTF--
|
|
NULL
|
|
string(7) "foo bar"
|