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 | use TTMServer; |
8 | |
9 | class FakeWritableTtmServer extends TTMServer implements WritableTtmServer { |
10 | public function __construct() { |
11 | parent::__construct( [] ); |
12 | } |
13 | |
14 | public function update( MessageHandle $handle, ?string $targetText ): bool { |
15 | return true; |
16 | } |
17 | |
18 | public function beginBootstrap(): void { |
19 | } |
20 | |
21 | public function beginBatch(): void { |
22 | } |
23 | |
24 | public function batchInsertDefinitions( array $batch ): void { |
25 | } |
26 | |
27 | public function batchInsertTranslations( array $batch ): void { |
28 | } |
29 | |
30 | public function endBatch(): void { |
31 | } |
32 | |
33 | public function endBootstrap(): void { |
34 | } |
35 | |
36 | public function isFrozen(): bool { |
37 | return false; |
38 | } |
39 | |
40 | public function setDoReIndex(): void { |
41 | } |
42 | } |