public function ApcuRawBackendGeneralTestCaseTrait::setUp in Supercache 8
Same name and namespace in other branches
- 2.0.x src/Tests/Cache/ApcuRawBackendGeneralTestCaseTrait.php \Drupal\supercache\Tests\Cache\ApcuRawBackendGeneralTestCaseTrait::setUp()
File
- src/
Tests/ Cache/ ApcuRawBackendGeneralTestCaseTrait.php, line 16
Class
Namespace
Drupal\supercache\Tests\CacheCode
public function setUp() {
apcu_clear_cache();
$app_root = '/';
$site_path = uniqid();
$factory = new ApcuRawBackendFactory($app_root, $site_path);
// The aim of this setup is to get two functional backend instances.
$this->backend = $factory
->get('test_binary');
$this->backend2 = $factory
->get('test_binary_alt');
}