3 * @version $Id: utf8_strtoupper.test.php,v 1.4 2006/10/17 09:22:14 harryf Exp $
8 //--------------------------------------------------------------------
14 require_once(dirname(__FILE__).'/../config.php');
16 //--------------------------------------------------------------------
21 class test_utf8_strtoupper extends UnitTestCase {
23 function test_utf8_strtoupper() {
24 $this->UnitTestCase('utf8_strtoupper()');
27 function testUpper() {
28 $str = 'iñtërnâtiônàlizætiøn';
29 $upper = 'IÑTËRNÂTIÔNÀLIZÆTIØN';
30 $this->assertEqual(utf8_strtoupper($str),$upper);
33 function testEmptyString() {
36 $this->assertEqual(utf8_strtoupper($str),$upper);
40 //--------------------------------------------------------------------
45 if (!defined('TEST_RUNNING')) {
46 define('TEST_RUNNING', true);
47 $test = &new test_utf8_strtoupper();
48 $reporter = & getTestReporter();
49 $test->run($reporter);