You are here

class MemcachedProfilerStorageTest in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/Profiler/MemcachedProfilerStorageTest.php \Symfony\Component\HttpKernel\Tests\Profiler\MemcachedProfilerStorageTest

Hierarchy

Expanded class hierarchy of MemcachedProfilerStorageTest

File

vendor/symfony/http-kernel/Tests/Profiler/MemcachedProfilerStorageTest.php, line 17

Namespace

Symfony\Component\HttpKernel\Tests\Profiler
View source
class MemcachedProfilerStorageTest extends AbstractProfilerStorageTest {
  protected static $storage;
  protected function setUp() {
    $memcachedMock = new MemcachedMock();
    $memcachedMock
      ->addServer('127.0.0.1', 11211);
    self::$storage = new MemcachedProfilerStorage('memcached://127.0.0.1:11211', '', '', 86400);
    self::$storage
      ->setMemcached($memcachedMock);
    if (self::$storage) {
      self::$storage
        ->purge();
    }
  }
  protected function tearDown() {
    if (self::$storage) {
      self::$storage
        ->purge();
      self::$storage = false;
    }
  }

  /**
   * @return \Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface
   */
  protected function getStorage() {
    return self::$storage;
  }

}

Members