]> projects.mako.cc - scuttle/blob - includes/utf8/tests/cases/utf8_strtolower.test.php
remove duplicate shared-tag in xml - the android apps dont like this
[scuttle] / includes / utf8 / tests / cases / utf8_strtolower.test.php
1 <?php
2 /**
3 * @version $Id: utf8_strtolower.test.php,v 1.3 2006/02/24 23:33:10 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_strtolower extends UnitTestCase {
22
23     function test_utf8_strtolower() {
24         $this->UnitTestCase('utf8_strtolower()');
25     }
26     
27     function testLower() {
28         $str = 'IÑTËRNÂTIÔNÀLIZÆTIØN';
29         $lower = 'iñtërnâtiônàlizætiøn';
30         $this->assertEqual(utf8_strtolower($str),$lower);
31     }
32     
33     function testEmptyString() {
34         $str = '';
35         $lower = '';
36         $this->assertEqual(utf8_strtolower($str),$lower);
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_strtolower();
48     $reporter = & getTestReporter();
49     $test->run($reporter);
50 }

Benjamin Mako Hill || Want to submit a patch?