php-src/ext/ctype/tests/ctype_upper_basic.phpt

30 lines
597 B
Plaintext
Raw Normal View History

2008-03-17 09:52:02 +00:00
--TEST--
Test ctype_upper() function : basic functionality
2008-07-13 21:34:15 +00:00
--SKIPIF--
<?php require_once('skipif.inc'); ?>
2008-03-17 09:52:02 +00:00
--FILE--
<?php
/* Prototype : bool ctype_upper(mixed $c)
* Description: Checks for uppercase character(s)
* Source code: ext/ctype/ctype.c
*/
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);
?>
===DONE===
--EXPECTF--
*** Testing ctype_upper() : basic functionality ***
bool(true)
bool(false)
===DONE===