protected function MemcacheddSessionHandlerTest::setUp

File

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

Class

MemcacheddSessionHandlerTest

Namespace

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

Code

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