]> projects.mako.cc - scuttle/blob - includes/utf8/tests/cases/utf8_strtoupper.test.php
- Updated default filetypes used for system tags
[scuttle] / includes / utf8 / tests / cases / utf8_strtoupper.test.php
1 <?php
2 /**
3 * @version $Id: utf8_strtoupper.test.php,v 1.4 2006/10/17 09:22:14 harryf Exp $
4 * @package utf8
5 * @subpackage Tests
6 */
7
8 //--------------------------------------------------------------------
9 /**
10 * Includes
11 * @package utf8
12 * @subpackage Tests
13 */
14 require_once(dirname(__FILE__).'/../config.php');
15
16 //--------------------------------------------------------------------
17 /**
18 * @package utf8
19 * @subpackage Tests
20 */
21 class test_utf8_strtoupper extends UnitTestCase {
22
23     function test_utf8_strtoupper() {
24         $this->UnitTestCase('utf8_strtoupper()');
25     }
26     
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);
31     }
32     
33     function testEmptyString() {
34         $str = '';
35         $upper = '';
36         $this->assertEqual(utf8_strtoupper($str),$upper);
37     }
38 }
39
40 //--------------------------------------------------------------------
41 /**
42 * @package utf8
43 * @subpackage Tests
44 */
45 if (!defined('TEST_RUNNING')) {
46     define('TEST_RUNNING', true);
47     $test = &new test_utf8_strtoupper();
48     $reporter = & getTestReporter();
49     $test->run($reporter);
50 }

Benjamin Mako Hill || Want to submit a patch?