xref: /PHP-8.0/ext/mbstring/tests/casefold.phpt (revision f8d79582)
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--EXPECT--
20abcdefghijklmnopqrstuvwxyz
21ABCDEFGHIJKLMNOPQRSTUVWXYZ
22���
23���
24