MediaWiki
REL1_32
ReaderFactoryTest.php
Go to the documentation of this file.
1
<?php
8
namespace
LocalisationUpdate
;
9
13
class
ReaderFactoryTest
extends
\PHPUnit\Framework\TestCase {
17
public
function
testGetReader
(
$input
, $expected, $comment ) {
18
$factory =
new
ReaderFactory
();
19
$reader = $factory->getReader(
$input
);
20
$observed = get_class( $reader );
21
$this->assertEquals( $expected, $observed, $comment );
22
}
23
24
public
function
getReaderProvider
() {
25
return
[
26
[
27
'languages/messages/MessagesFi.php'
,
28
'LocalisationUpdate\PHPReader'
,
29
'core php file'
,
30
],
31
[
32
'extensions/Translate/Translate.i18n.php'
,
33
'LocalisationUpdate\PHPReader'
,
34
'extension php file'
,
35
],
36
[
37
'extension/Translate/i18n/core/de.json'
,
38
'LocalisationUpdate\JSONReader'
,
39
'extension json file'
,
40
],
41
];
42
}
43
}
LocalisationUpdate\ReaderFactoryTest
\LocalisationUpdate\ReaderFactory
Definition
ReaderFactoryTest.php:13
LocalisationUpdate\ReaderFactoryTest\getReaderProvider
getReaderProvider()
Definition
ReaderFactoryTest.php:24
LocalisationUpdate\ReaderFactoryTest\testGetReader
testGetReader( $input, $expected, $comment)
getReaderProvider
Definition
ReaderFactoryTest.php:17
LocalisationUpdate\ReaderFactory
Constructs readers for files based on the names.
Definition
ReaderFactory.php:13
LocalisationUpdate
Definition
Fetcher.php:8
$input
if(is_array($mode)) switch( $mode) $input
Definition
postprocess-phan.php:141
extensions
LocalisationUpdate
tests
phpunit
reader
ReaderFactoryTest.php
Generated on Mon Nov 25 2024 15:56:38 for MediaWiki by
1.10.0