1--TEST-- 2IntlBreakIterator factories: basic tests 3--EXTENSIONS-- 4intl 5--FILE-- 6<?php 7ini_set("intl.error_level", E_WARNING); 8ini_set("intl.default_locale", "ja"); 9 10$m = array('createWordInstance', 'createLineInstance', 'createCharacterInstance', 11 'createSentenceInstance', 'createTitleInstance'); 12 13$t = 'Frase 1... Frase 2'; 14 15foreach ($m as $method) { 16 echo "===== $method =====\n"; 17 $o1 = IntlBreakIterator::$method('ja'); 18 $o2 = IntlBreakIterator::$method(NULL); 19 $o3 = IntlBreakIterator::$method(); 20 var_dump($o1 == $o2 && $o2 == $o3); 21 echo "\n"; 22} 23?> 24--EXPECT-- 25===== createWordInstance ===== 26bool(true) 27 28===== createLineInstance ===== 29bool(true) 30 31===== createCharacterInstance ===== 32bool(true) 33 34===== createSentenceInstance ===== 35bool(true) 36 37===== createTitleInstance ===== 38bool(true) 39