xref: /PHP-5.6/ext/mbstring/tests/casefold.phpt (revision b62afe78)
1--TEST--
2mb_strtoupper() / mb_strtolower()
3--SKIPIF--
4<?php
5extension_loaded('mbstring') or die('skip mbstring not available');
6function_exists('mb_strtolower') and
7function_exists('mb_convert_case' ) or die("skip mb_convert_case() is not available");
8?>
9--INI--
10output_handler=
11--FILE--
12<?php
13	mb_internal_encoding( 'ISO-8859-1' );
14	print mb_strtolower( "ABCDEFGHIJKLMNOPQRSTUVWXYZ\n" );
15	print mb_strtoupper( mb_strtolower( "ABCDEFGHIJKLMNOPQRSTUVWXYZ\n" ) );
16	print mb_strtoupper( "���\n" );
17	print mb_convert_case( "���\n", MB_CASE_TITLE );
18?>
19
20--EXPECT--
21abcdefghijklmnopqrstuvwxyz
22ABCDEFGHIJKLMNOPQRSTUVWXYZ
23���
24���
25