summaryrefslogtreecommitdiff
path: root/ext/ctype/tests/ctype_lower_basic.phpt
blob: 79560917f51444d8187d00c8cec9f866b29b7eee (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_lower() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
echo "*** Testing ctype_lower() : basic functionality ***\n";

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

$c1 = 'helloworld';
$c2 = "Hello, world!\n";

var_dump(ctype_lower($c1));
var_dump(ctype_lower($c2));

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