Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 10 |
|
0.00% |
0 / 10 |
CRAP | |
0.00% |
0 / 1 |
FakeWritableTtmServer | |
0.00% |
0 / 10 |
|
0.00% |
0 / 10 |
110 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
update | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
beginBootstrap | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
beginBatch | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
batchInsertDefinitions | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
batchInsertTranslations | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
endBatch | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
endBootstrap | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
isFrozen | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setDoReIndex | |
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 | use MediaWiki\Extension\Translate\MessageLoading\MessageHandle; |
7 | |
8 | class FakeWritableTtmServer extends TtmServer implements WritableTtmServer { |
9 | public function __construct() { |
10 | parent::__construct( [] ); |
11 | } |
12 | |
13 | public function update( MessageHandle $handle, ?string $targetText ): bool { |
14 | return true; |
15 | } |
16 | |
17 | public function beginBootstrap(): void { |
18 | } |
19 | |
20 | public function beginBatch(): void { |
21 | } |
22 | |
23 | public function batchInsertDefinitions( array $batch ): void { |
24 | } |
25 | |
26 | public function batchInsertTranslations( array $batch ): void { |
27 | } |
28 | |
29 | public function endBatch(): void { |
30 | } |
31 | |
32 | public function endBootstrap(): void { |
33 | } |
34 | |
35 | public function isFrozen(): bool { |
36 | return false; |
37 | } |
38 | |
39 | public function setDoReIndex(): void { |
40 | } |
41 | } |