MediaWiki  1.23.15
SkinTemplateTest.php
Go to the documentation of this file.
1 <?php
2 
13 
17  public function testMakeListItem( $expected, $key, $item, $options, $message ) {
18  $template = $this->getMockForAbstractClass( 'BaseTemplate' );
19 
20  $this->assertEquals(
21  $expected,
22  $template->makeListItem( $key, $item, $options ),
23  $message
24  );
25  }
26 
27  public function makeListItemProvider() {
28  return array(
29  array(
30  '<li class="class" title="itemtitle"><a href="url" title="title">text</a></li>',
31  '',
32  array( 'class' => 'class', 'itemtitle' => 'itemtitle', 'href' => 'url', 'title' => 'title', 'text' => 'text' ),
33  array(),
34  'Test makteListItem with normal values'
35  )
36  );
37  }
38 }
SkinTemplateTest\testMakeListItem
testMakeListItem( $expected, $key, $item, $options, $message)
@dataProvider makeListItemProvider
Definition: SkinTemplateTest.php:17
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
MediaWikiTestCase
Definition: MediaWikiTestCase.php:6
SkinTemplateTest\makeListItemProvider
makeListItemProvider()
Definition: SkinTemplateTest.php:27
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
$options
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
Definition: hooks.txt:1530
SkinTemplateTest
@covers SkinTemplate
Definition: SkinTemplateTest.php:12