3 use MediaWiki\MediaWikiServices
;
6 * Test class for ImageListPagerTest class.
8 * Copyright © 2013, Antoine Musso
9 * Copyright © 2013, Siebrand Mazeland
10 * Copyright © 2013, Wikimedia Foundation Inc.
14 class ImageListPagerTest
extends MediaWikiTestCase
{
16 * @expectedException MWException
17 * @expectedExceptionMessage invalid_field
18 * @covers ImageListPager::formatValue
20 public function testFormatValuesThrowException() {
21 $page = new ImageListPager( RequestContext
::getMain(), null, '', false, false,
22 MediaWikiServices
::getInstance()->getLinkRenderer() );
23 $page->formatValue( 'invalid_field', 'invalid_value' );