protected function MemcacheSessionHandlerTest::setUp

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcacheSessionHandlerTest.php, line 27

Class

MemcacheSessionHandlerTest

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler

Code

protected function setUp() {
  if (!class_exists('Memcache')) {
    $this
      ->markTestSkipped('Skipped tests Memcache class is not present');
  }
  $this->memcache = $this
    ->getMock('Memcache');
  $this->storage = new MemcacheSessionHandler($this->memcache, array(
    'prefix' => self::PREFIX,
    'expiretime' => self::TTL,
  ));
}