Debian Codegraph @

tests/phpunit/includes/libs/objectcache/MemcachedPeclBagOStuffIntegrationTest.php

raw symbols SCIP
1 <?php
2
3 use MediaWiki\MainConfigNames;
4 use MediaWiki\MediaWikiServices;
5
6 /**
7 * @group BagOStuff
8 * @covers \Wikimedia\ObjectCache\MemcachedPeclBagOStuff
9 * @requires extension memcached
10 */
11 class MemcachedPeclBagOStuffIntegrationTest extends BagOStuffTestBase {
12 protected function newCacheInstance() {
13 if ( !$this->getConfVar( MainConfigNames::EnableRemoteBagOStuffTests ) ) {
14 $this->markTestSkipped( '$wgEnableRemoteBagOStuffTests is false' );
15 }
16 return MediaWikiServices::getInstance()->getObjectCacheFactory()->getInstance( 'memcached-pecl' );
17 }
18 }