public function testStrtolower() { $testString = "ÂLL WORK AND NO PLAY MAKES ウーラ A DULL BOY."; $testStringLowerCase = "âll work and no play makes ウーラ a dull boy."; $resultString = eZURLAliasML::strtolower($testString); self::assertEquals($testStringLowerCase, $resultString); }
private static function md5($db, $text, $escape = true) { // Special case for Oracle since it cannot calculate MD5 for empty strings if (strlen($text) == 0 && $db->databaseName() == 'oracle') { return "'" . $db->escapeString(md5($text)) . "'"; } if ($escape) { $text = $db->escapeString(eZURLAliasML::strtolower($text)); } return $db->md5("'" . $text . "'"); }