Debian Codegraph @

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

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