wiki.techinc.nl/tests/phpunit/mocks/languages/DummyConverter.php
ArtBaltai 3bf4b42490 Remove LanguageConverter dependencies on Title and use LinkTarget
Replace usage of Title in LanguageConverter with LinkTarget which
is more light weighted and provides just the props needed in Language.

Bug: T226834
Change-Id: I02a386bd9898e83c773cbd3d738d347d08f52c11
2020-02-12 18:37:11 +03:00

22 lines
421 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* Test converter (from Tajiki to latin orthography)
*/
class DummyConverter extends LanguageConverter {
private $table = [
'б' => 'b',
'в' => 'v',
'г' => 'g',
];
public function loadDefaultTables() {
$this->mTables = [
'sgs' => new ReplacementArray(),
'simple' => new ReplacementArray(),
'tg-latn' => new ReplacementArray( $this->table ),
'tg' => new ReplacementArray()
];
}
}