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

use MediaWiki\MainConfigNames;

/**
 * @group BagOStuff
 * @covers \Wikimedia\ObjectCache\MemcachedPhpBagOStuff
 */
class MemcachedPhpBagOStuffIntegrationTest extends BagOStuffTestBase {
	protected function newCacheInstance() {
		if ( !$this->getConfVar( MainConfigNames::EnableRemoteBagOStuffTests ) ) {
			$this->markTestSkipped( '$wgEnableRemoteBagOStuffTests is false' );
		}
		return $this->getServiceContainer()->getObjectCacheFactory()->getInstance( 'memcached-php' );
	}
}