aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/libs/objectcache/MemcachedPeclBagOStuffIntegrationTest.php
blob: 259e91e9739486601adb44889ad9bc5b6858fce5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

use MediaWiki\MainConfigNames;
use MediaWiki\MediaWikiServices;

/**
 * @group BagOStuff
 * @covers \Wikimedia\ObjectCache\MemcachedPeclBagOStuff
 * @requires extension memcached
 */
class MemcachedPeclBagOStuffIntegrationTest extends BagOStuffTestBase {
	protected function newCacheInstance() {
		if ( !$this->getConfVar( MainConfigNames::EnableRemoteBagOStuffTests ) ) {
			$this->markTestSkipped( '$wgEnableRemoteBagOStuffTests is false' );
		}
		return MediaWikiServices::getInstance()->getObjectCacheFactory()->getInstance( 'memcached-pecl' );
	}
}