summaryrefslogtreecommitdiff
path: root/ext/ctype/tests/ctype_upper_basic.phpt
blob: 65e13892dc5cb84891ca39f5a530a0ab9ca097d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Test ctype_upper() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
echo "*** Testing ctype_upper() : basic functionality ***\n";

$orig = setlocale(LC_CTYPE, "C");

$c1 = 'HELLOWORLD';
$c2 = "Hello, World!\n";

var_dump(ctype_upper($c1));
var_dump(ctype_upper($c2));

setlocale(LC_CTYPE, $orig);
?>
--EXPECT--
*** Testing ctype_upper() : basic functionality ***
bool(true)
bool(false)