function test_strtoupper() { $this->assert_equal(MultiByte::strtoupper(self::$test_str), mb_strtoupper(mb_convert_encoding(self::$test_str, 'UTF-8', mb_detect_encoding(self::$test_str)), 'UTF-8')); printf("Test string: %s <br>", self::$test_str); printf("MultiByte strtoupper: %s <br>", MultiByte::strtoupper(self::$test_str)); printf("mbstring strtoupper without detecting encoding: %s <br>", mb_strtoupper(self::$test_str)); printf("mstring strtoupper with detecting encoding: %s <br>", mb_strtoupper(self::$test_str, mb_detect_encoding(self::$test_str))); }
public function test_strtoupper() { $this->assert_equal(MultiByte::strtoupper($this->test_strings['lowercase']), $this->test_strings['uppercase']); }
public function testStrtoupper() { $this->assertEquals(MultiByte::strtoupper(self::$test_str), mb_strtoupper(mb_convert_encoding(self::$test_str, 'UTF-8', mb_detect_encoding(self::$test_str)), 'UTF-8')); }