Remove messages.inc, rebuildLanguage.php, writeMessagesArray.inc
[mediawiki.git] / tests / phpunit / includes / SkinTemplateTest.php
blobbaa995d4e65315d75ae79720b9224bcfddf8de73
1 <?php
3 /**
4 * @covers SkinTemplate
6 * @group Output
8 * @licence GNU GPL v2+
9 * @author Bene* < benestar.wikimedia@gmail.com >
12 class SkinTemplateTest extends MediaWikiTestCase {
13 /**
14 * @dataProvider makeListItemProvider
16 public function testMakeListItem( $expected, $key, $item, $options, $message ) {
17 $template = $this->getMockForAbstractClass( 'BaseTemplate' );
19 $this->assertEquals(
20 $expected,
21 $template->makeListItem( $key, $item, $options ),
22 $message
26 public function makeListItemProvider() {
27 return array(
28 array(
29 '<li class="class" title="itemtitle"><a href="url" title="title">text</a></li>',
30 '',
31 array(
32 'class' => 'class',
33 'itemtitle' => 'itemtitle',
34 'href' => 'url',
35 'title' => 'title',
36 'text' => 'text'
38 array(),
39 'Test makteListItem with normal values'