Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
FakeReadableTtmServer | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
query | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
isLocalSuggestion | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
expandLocation | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace MediaWiki\Extension\Translate\TtmServer; |
5 | |
6 | /** |
7 | * NO-OP readable version of TtmServer when it is disabled. |
8 | * @ingroup TTMServer |
9 | */ |
10 | class FakeReadableTtmServer extends TtmServer implements ReadableTtmServer { |
11 | public function query( string $sourceLanguage, string $targetLanguage, string $text ): array { |
12 | return []; |
13 | } |
14 | |
15 | public function isLocalSuggestion( array $suggestion ): bool { |
16 | return false; |
17 | } |
18 | |
19 | public function expandLocation( array $suggestion ): string { |
20 | return ''; |
21 | } |
22 | } |