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