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