Debian Codegraph @

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

raw symbols SCIP
1 <?php
2
3 use Wikimedia\ObjectCache\APCUBagOStuff;
4
5 /**
6 * @group BagOStuff
7 * @covers \Wikimedia\ObjectCache\APCUBagOStuff
8 * @requires extension apcu
9 */
10 class APCUBagOStuffTest extends BagOStuffTestBase {
11 protected function newCacheInstance() {
12 // Make sure the APCu methods actually store anything
13 if ( PHP_SAPI === 'cli' && !ini_get( 'apc.enable_cli' ) ) {
14 $this->markTestSkipped( 'apc.enable_cli=1 is required to run this test.' );
15 }
16 return new APCUBagOStuff( [] );
17 }
18 }