You are here

public function PdoSessionHandlerTest::testInexistentTable 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::testInexistentTable()

@expectedException \RuntimeException

File

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

Class

PdoSessionHandlerTest

Namespace

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

Code

public function testInexistentTable() {
  $storage = new PdoSessionHandler($this
    ->getMemorySqlitePdo(), array(
    'db_table' => 'inexistent_table',
  ));
  $storage
    ->open('', 'sid');
  $storage
    ->read('id');
  $storage
    ->write('id', 'data');
  $storage
    ->close();
}