Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
TitleRepository | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
exists | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Flow\Repository; |
4 | |
5 | use MediaWiki\Title\Title; |
6 | |
7 | /** |
8 | * Abstraction for calling stateful methods of the title class. Allows |
9 | * replacing them in unit tests. |
10 | */ |
11 | class TitleRepository { |
12 | public function exists( Title $title ) { |
13 | return $title->exists(); |
14 | } |
15 | } |