<?php
+/**
+ * @group Database
+ */
+
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() );
}
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 ],
+ ];
}
}