);
}
+ /**
+ * @covers ::wfMemcKey
+ */
public function testWfMemcKey() {
$cache = ObjectCache::getLocalClusterInstance();
$this->assertEquals(
);
}
+ /**
+ * @covers ::wfForeignMemcKey
+ */
public function testWfForeignMemcKey() {
$cache = ObjectCache::getLocalClusterInstance();
$keyspace = $this->readAttribute( $cache, 'keyspace' );
);
}
+ /**
+ * @covers ::wfGlobalCacheKey
+ */
public function testWfGlobalCacheKey() {
$cache = ObjectCache::getLocalClusterInstance();
$this->assertEquals(
);
}
+ /**
+ * @covers Html::namespaceSelector
+ */
public function testCanFilterOutNamespaces() {
$this->assertEquals(
'<select id="namespace" name="namespace">' . "\n" .
);
}
+ /**
+ * @covers Html::namespaceSelector
+ */
public function testCanDisableANamespaces() {
$this->assertEquals(
'<select id="namespace" name="namespace">' . "\n" .
return $ret;
}
+ /**
+ * @covers Html::input
+ */
public function testWrapperInput() {
$this->assertEquals(
'<input type="radio" value="testval" name="testname"/>',
);
}
+ /**
+ * @covers Html::check
+ */
public function testWrapperCheck() {
$this->assertEquals(
'<input type="checkbox" value="1" name="testname"/>',
);
}
+ /**
+ * @covers Html::radio
+ */
public function testWrapperRadio() {
$this->assertEquals(
'<input type="radio" value="1" name="testname"/>',
);
}
+ /**
+ * @covers Html::label
+ */
public function testWrapperLabel() {
$this->assertEquals(
'<label for="testid">testlabel</label>',
use Wikimedia\Rdbms\LikeMatch;
/**
+ * @covers LinkFilter
* @group Database
*/
class LinkFilterTest extends MediaWikiLangTestCase {
$this->assertTrue( $outputPage->haveCacheVaryCookies() );
}
- /*
+ /**
* @covers OutputPage::addCategoryLinks
* @covers OutputPage::getCategories
*/
<?php
/**
+ * @covers PageProps
+ *
* @group Database
* ^--- tell jenkins this test needs the database
*
}
/**
+ * @covers Revision::userWasLastToEdit
* @dataProvider provideUserWasLastToEdit
*/
public function testUserWasLastToEdit( $sinceIdx, $expectedLast ) {
$this->assertEquals( $expected, $title->getOtherPage()->getPrefixedText() );
}
+ /**
+ * @covers Title::clearCaches
+ */
public function testClearCaches() {
$linkCache = LinkCache::singleton();
}
/**
+ * @covers Title::newFromTitleValue
* @dataProvider provideNewFromTitleValue
*/
public function testNewFromTitleValue( TitleValue $value ) {
}
/**
+ * @covers Title::getTitleValue
* @dataProvider provideGetTitleValue
*/
public function testGetTitleValue( $text ) {
}
/**
+ * @covers Title::getFragment
* @dataProvider provideGetFragment
*
* @param string $full
}
/**
+ * @covers Title::getFragmentForURL
* @dataProvider provideGetFragmentForURL
*
* @param string $titleStr
}
}
+/**
+ * @covers PoolCounter
+ */
class PoolCounterTest extends MediaWikiTestCase {
public function testConstruct() {
$poolCounterConfig = [
}
/**
+ * @covers UploadBase::verifyUpload
+ *
* test uploading a 100 bytes file with $wgMaxUploadSize = 100
*
* This method should be abstracted so we can test different settings.
}
/**
+ * @covers UploadBase::checkSvgScriptCallback
* @dataProvider provideCheckSvgScriptCallback
*/
public function testCheckSvgScriptCallback( $svg, $wellFormed, $filterMatch, $message ) {
}
/**
+ * @covers UploadBase::detectScriptInSvg
* @dataProvider provideDetectScriptInSvg
*/
public function testDetectScriptInSvg( $svg, $expected, $message ) {
}
/**
+ * @covers UploadBase::checkXMLEncodingMissmatch
* @dataProvider provideCheckXMLEncodingMissmatch
*/
public function testCheckXMLEncodingMissmatch( $fileContents, $evil ) {