You are here

protected function PdoSessionHandlerTest::getMemorySqlitePdo in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler\PdoSessionHandlerTest::getMemorySqlitePdo()
10 calls to PdoSessionHandlerTest::getMemorySqlitePdo()
PdoSessionHandlerTest::testCreateTableTwice in vendor/symfony/http-foundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php
@expectedException \RuntimeException
PdoSessionHandlerTest::testGetConnection in vendor/symfony/http-foundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php
PdoSessionHandlerTest::testInexistentTable in vendor/symfony/http-foundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php
@expectedException \RuntimeException
PdoSessionHandlerTest::testReadingRequiresExactlySameId in vendor/symfony/http-foundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php
PdoSessionHandlerTest::testReadWriteReadWithNullByte in vendor/symfony/http-foundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php

... See full list

File

vendor/symfony/http-foundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php, line 42

Class

PdoSessionHandlerTest

Namespace

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

Code

protected function getMemorySqlitePdo() {
  $pdo = new \PDO('sqlite::memory:');
  $pdo
    ->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
  $storage = new PdoSessionHandler($pdo);
  $storage
    ->createTable();
  return $pdo;
}