You are here

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

File

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

Class

PdoSessionHandlerTest

Namespace

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

Code

public function testGetConnection() {
  $storage = new PdoSessionHandler($this
    ->getMemorySqlitePdo());
  $method = new \ReflectionMethod($storage, 'getConnection');
  $method
    ->setAccessible(true);
  $this
    ->assertInstanceOf('\\PDO', $method
    ->invoke($storage));
}