3 * @version $Id: utf8_strtolower.test.php,v 1.3 2006/02/24 23:33:10 harryf Exp $
8 //--------------------------------------------------------------------
14 require_once(dirname(__FILE__).'/../config.php');
16 //--------------------------------------------------------------------
21 class test_utf8_strtolower extends UnitTestCase {
23 function test_utf8_strtolower() {
24 $this->UnitTestCase('utf8_strtolower()');
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);
33 function testEmptyString() {
36 $this->assertEqual(utf8_strtolower($str),$lower);
40 //--------------------------------------------------------------------
45 if (!defined('TEST_RUNNING')) {
46 define('TEST_RUNNING', true);
47 $test = &new test_utf8_strtolower();
48 $reporter = & getTestReporter();
49 $test->run($reporter);