protected function MongoDbSessionHandlerTest::setUp

File

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

Class

MongoDbSessionHandlerTest
@author Markus Bachmann <markus.bachmann@bachi.biz>

Namespace

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

Code

protected function setUp() {
  if (null === self::$mongo) {
    $this
      ->markTestSkipped('MongoDbSessionHandler requires the php "mongo" extension and a mongodb server on localhost');
  }
  $this->options = array(
    'database' => 'sf2-test',
    'collection' => 'session-test',
  );
  $this->options = array(
    'database' => 'sf2-test',
    'collection' => 'session-test',
  );
  $this->storage = new MongoDbSessionHandler(self::$mongo, $this->options);
}