You are here

protected function LegacyApcUniversalClassLoaderTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/class-loader/Tests/LegacyApcUniversalClassLoaderTest.php \Symfony\Component\ClassLoader\Tests\LegacyApcUniversalClassLoaderTest::setUp()

File

vendor/symfony/class-loader/Tests/LegacyApcUniversalClassLoaderTest.php, line 21

Class

LegacyApcUniversalClassLoaderTest
@group legacy

Namespace

Symfony\Component\ClassLoader\Tests

Code

protected function setUp() {
  if (!extension_loaded('apc')) {
    $this
      ->markTestSkipped('The apc extension is not available.');
  }
  if (!(ini_get('apc.enabled') && ini_get('apc.enable_cli'))) {
    $this
      ->markTestSkipped('The apc extension is available, but not enabled.');
  }
  else {
    apc_clear_cache('user');
  }
}