dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Remove (edit) from Special:Tags for non-editinterface users"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
languages
/
LanguageUzTest.php
diff --git
a/tests/phpunit/languages/LanguageUzTest.php
b/tests/phpunit/languages/LanguageUzTest.php
index
99607d1
..
495c0be
100644
(file)
--- a/
tests/phpunit/languages/LanguageUzTest.php
+++ b/
tests/phpunit/languages/LanguageUzTest.php
@@
-64,6
+64,7
@@
class LanguageUzTest extends LanguageClassesTestCase {
$msg
);
}
$msg
);
}
+
/**
* Wrapper to verify a text is different once converted to a variant.
* @param $text string Text to convert
/**
* Wrapper to verify a text is different once converted to a variant.
* @param $text string Text to convert
@@
-87,6
+88,7
@@
class LanguageUzTest extends LanguageClassesTestCase {
$this->assertUnConverted( $text, 'uz-cyrl', $msg );
$this->assertConverted( $text, 'uz-latn', $msg );
}
$this->assertUnConverted( $text, 'uz-cyrl', $msg );
$this->assertConverted( $text, 'uz-latn', $msg );
}
+
/**
* Verifiy the given Latin text is not converted when using
* using the Latin variant and converted to Cyrillic when using
/**
* Verifiy the given Latin text is not converted when using
* using the Latin variant and converted to Cyrillic when using
@@
-102,9
+104,11
@@
class LanguageUzTest extends LanguageClassesTestCase {
function convertTo( $text, $variant ) {
return $this->getLang()->mConverter->convertTo( $text, $variant );
}
function convertTo( $text, $variant ) {
return $this->getLang()->mConverter->convertTo( $text, $variant );
}
+
function convertToCyrillic( $text ) {
return $this->convertTo( $text, 'uz-cyrl' );
}
function convertToCyrillic( $text ) {
return $this->convertTo( $text, 'uz-cyrl' );
}
+
function convertToLatin( $text ) {
return $this->convertTo( $text, 'uz-latn' );
}
function convertToLatin( $text ) {
return $this->convertTo( $text, 'uz-latn' );
}