You are here

public function MockPdo::getAttribute 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\MockPdo::getAttribute()

File

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

Class

MockPdo

Namespace

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

Code

public function getAttribute($attribute) {
  if (\PDO::ATTR_ERRMODE === $attribute) {
    return $this->errorMode;
  }
  if (\PDO::ATTR_DRIVER_NAME === $attribute) {
    return $this->driverName;
  }
  return parent::getAttribute($attribute);
}