@@ -80,6 +80,70 @@ public function testSqliteConstructor()
8080        $ this  ->assertInstanceOf (\Pdo \Sqlite::class, $ sqlite );
8181    }
8282
83+     /** 
84+      * @requires extension pdo_dblib 
85+      * @requires extension pdo_sqlite 
86+      */ 
87+     public  function  testDblibConnect ()
88+     {
89+         $ this  ->expectException (PDOException::class);
90+         $ this  ->expectExceptionMessage ("Pdo\Dblib::__construct() cannot be used for connecting to the  \"sqlite \" driver " );
91+         \Pdo \Dblib::connect ("sqlite: " );
92+     }
93+ 
94+     /** 
95+      * @requires extension pdo_firebird 
96+      * @requires extension pdo_sqlite 
97+      */ 
98+     public  function  testFirebirdConnect ()
99+     {
100+         $ this  ->expectException (PDOException::class);
101+         $ this  ->expectExceptionMessage ("Pdo\Firebird::__construct() cannot be used for connecting to the  \"sqlite \" driver " );
102+         \Pdo \Firebird::connect ("sqlite: " );
103+     }
104+ 
105+     /** 
106+      * @requires extension pdo_mysql 
107+      * @requires extension pdo_sqlite 
108+      */ 
109+     public  function  testMysqlConnect ()
110+     {
111+         $ this  ->expectException (PDOException::class);
112+         $ this  ->expectExceptionMessage ("Pdo\Mysql::__construct() cannot be used for connecting to the  \"sqlite \" driver " );
113+         \Pdo \Mysql::connect ("sqlite: " );
114+     }
115+ 
116+     /** 
117+      * @requires extension pdo_odbc 
118+      * @requires extension pdo_sqlite 
119+      */ 
120+     public  function  testOdbcConnect ()
121+     {
122+         $ this  ->expectException (PDOException::class);
123+         $ this  ->expectExceptionMessage ("Pdo\Odbc::__construct() cannot be used for connecting to the  \"sqlite \" driver " );
124+         \Pdo \Odbc::connect ("sqlite: " );
125+     }
126+ 
127+     /** 
128+      * @requires extension pdo_pgsql 
129+      * @requires extension pdo_sqlite 
130+      */ 
131+     public  function  testPgsqlConnect ()
132+     {
133+         $ this  ->expectException (PDOException::class);
134+         $ this  ->expectExceptionMessage ("Pdo\Pgsql::__construct() cannot be used for connecting to the  \"sqlite \" driver " );
135+         \Pdo \Pgsql::connect ("sqlite: " );
136+     }
137+ 
138+     /** 
139+      * @requires extension pdo_sqlite 
140+      */ 
141+     public  function  testSqliteConnect ()
142+     {
143+         $ sqlite  = \Pdo \Sqlite::connect ("sqlite: " );
144+         $ this  ->assertInstanceOf (\Pdo \Sqlite::class, $ sqlite );
145+     }
146+ 
83147    /** 
84148     * @requires extension pdo_dblib 
85149     */ 
0 commit comments