You are here

public function LegacyPdoSessionHandlerTest::testWrongTableOptionsWrite in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/Session/Storage/Handler/LegacyPdoSessionHandlerTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler\LegacyPdoSessionHandlerTest::testWrongTableOptionsWrite()

File

vendor/symfony/http-foundation/Tests/Session/Storage/Handler/LegacyPdoSessionHandlerTest.php, line 51

Class

LegacyPdoSessionHandlerTest
@group legacy

Namespace

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

Code

public function testWrongTableOptionsWrite() {
  $storage = new LegacyPdoSessionHandler($this->pdo, array(
    'db_table' => 'bad_name',
  ));
  $this
    ->setExpectedException('RuntimeException');
  $storage
    ->write('foo', 'bar');
}