You are here

protected function MemcacheProfilerStorageTest::setUp in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/Profiler/MemcacheProfilerStorageTest.php \Symfony\Component\HttpKernel\Tests\Profiler\MemcacheProfilerStorageTest::setUp()

File

vendor/symfony/http-kernel/Tests/Profiler/MemcacheProfilerStorageTest.php, line 21

Class

MemcacheProfilerStorageTest

Namespace

Symfony\Component\HttpKernel\Tests\Profiler

Code

protected function setUp() {
  $memcacheMock = new MemcacheMock();
  $memcacheMock
    ->addServer('127.0.0.1', 11211);
  self::$storage = new MemcacheProfilerStorage('memcache://127.0.0.1:11211', '', '', 86400);
  self::$storage
    ->setMemcache($memcacheMock);
  if (self::$storage) {
    self::$storage
      ->purge();
  }
}