77use Yiisoft \Db \Driver \PDO \ConnectionPDOInterface ;
88use Yiisoft \Db \Exception \Exception ;
99use Yiisoft \Db \Exception \InvalidConfigException ;
10- use Yiisoft \Db \Mssql \ConnectionPDO ;
10+ use Yiisoft \Db \Mssql \Connection ;
1111use Yiisoft \Db \Mssql \Dsn ;
12- use Yiisoft \Db \Mssql \PDODriver ;
12+ use Yiisoft \Db \Mssql \Driver ;
1313use Yiisoft \Db \Tests \Support \DbHelper ;
1414
1515trait TestTrait
@@ -23,8 +23,8 @@ trait TestTrait
2323 */
2424 protected function getConnection (bool $ fixture = false ): ConnectionPDOInterface
2525 {
26- $ db = new ConnectionPDO (
27- new PDODriver ($ this ->getDsn (), 'SA ' , 'YourStrong!Passw0rd ' ),
26+ $ db = new Connection (
27+ new Driver ($ this ->getDsn (), 'SA ' , 'YourStrong!Passw0rd ' ),
2828 DbHelper::getSchemaCache ()
2929 );
3030
@@ -39,8 +39,8 @@ protected static function getDb(): ConnectionPDOInterface
3939 {
4040 $ dsn = (new Dsn ('sqlsrv ' , 'localhost ' , 'yiitest ' ))->asString ();
4141
42- return new ConnectionPDO (
43- new PDODriver ($ dsn , 'SA ' , 'YourStrong!Passw0rd ' ),
42+ return new Connection (
43+ new Driver ($ dsn , 'SA ' , 'YourStrong!Passw0rd ' ),
4444 DbHelper::getSchemaCache (),
4545 );
4646 }
0 commit comments