getDriver() public method

Which database driver are we operating on?
public getDriver ( ) : string
return string
Example #1
0
 public function testConstruct()
 {
     $config = $this->getConfig(true);
     try {
         $pdo = new \PDO(...$config);
     } catch (\Exception $ex) {
         $this->markTestSkipped('Database not configured');
         return;
     }
     $db = new Database($pdo, self::DRIVER);
     $this->assertTrue($db instanceof Database);
     $this->assertTrue($db->getDriver() === self::DRIVER);
 }