php-src/ext/mbstring/tests/casefold.phpt

25 lines
623 B
Plaintext
Raw Normal View History

--TEST--
mb_strtoupper() / mb_strtolower()
--SKIPIF--
2002-10-30 16:06:52 +08:00
<?php
extension_loaded('mbstring') or die('skip mbstring not available');
2002-10-24 04:38:18 +08:00
function_exists('mb_strtolower') and
2002-11-15 23:34:57 +08:00
function_exists('mb_convert_case' ) or die("skip mb_convert_case() is not available");
2002-10-30 16:06:52 +08:00
?>
2002-11-03 16:37:59 +08:00
--INI--
output_handler=
--FILE--
2002-10-22 03:19:05 +08:00
<?php
mb_internal_encoding( 'ISO-8859-1' );
2002-10-22 03:19:05 +08:00
print mb_strtolower( "ABCDEFGHIJKLMNOPQRSTUVWXYZ\n" );
print mb_strtoupper( mb_strtolower( "ABCDEFGHIJKLMNOPQRSTUVWXYZ\n" ) );
print mb_strtoupper( "<22><><EFBFBD>\n" );
2002-10-24 04:38:18 +08:00
print mb_convert_case( "<22><><EFBFBD>\n", MB_CASE_TITLE );
2002-10-22 03:19:05 +08:00
?>
--EXPECT--
abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
<EFBFBD><EFBFBD><EFBFBD>
2002-10-24 04:38:18 +08:00
<EFBFBD><EFBFBD><EFBFBD>