<?php
+
+/**
+ * @group Database
+ * @covers MIMEsearchPage
+ */
class SpecialMIMESearchTest extends MediaWikiTestCase {
- /** @var MIMESearchPage */
+ /** @var MIMEsearchPage */
private $page;
function setUp() {
- $this->page = new MIMESearchPage;
+ $this->page = new MIMEsearchPage;
$context = new RequestContext();
$context->setTitle( Title::makeTitle( NS_SPECIAL, 'MIMESearch' ) );
$context->setRequest( new FauxRequest() );
/**
* @dataProvider providerMimeFiltering
- * @param $par String subpage for special page
- * @param $major String Major MIME type we expect to look for
- * @param $minor String Minor MIME type we expect to look for
+ * @param string $par Subpage for special page
+ * @param string $major Major MIME type we expect to look for
+ * @param string $minor Minor MIME type we expect to look for
*/
function testMimeFiltering( $par, $major, $minor ) {
$this->page->run( $par );
}
function providerMimeFiltering() {
- return array(
- array( 'image/gif', 'image', 'gif' ),
- array( 'image/png', 'image', 'png' ),
- array( 'application/pdf', 'application', 'pdf' ),
- array( 'image/*', 'image', null ),
- array( 'multipart/*', 'multipart', null ),
- );
+ return [
+ [ 'image/gif', 'image', 'gif' ],
+ [ 'image/png', 'image', 'png' ],
+ [ 'application/pdf', 'application', 'pdf' ],
+ [ 'image/*', 'image', null ],
+ [ 'multipart/*', 'multipart', null ],
+ ];
}
}