You are here

public function PdoSessionHandlerTest::testWrongPdoErrMode in Zircon Profile 8

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

@expectedException \InvalidArgumentException

File

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

Class

PdoSessionHandlerTest

Namespace

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

Code

public function testWrongPdoErrMode() {
  $pdo = $this
    ->getMemorySqlitePdo();
  $pdo
    ->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_SILENT);
  $storage = new PdoSessionHandler($pdo);
}