@@ -47,7 +47,15 @@ protected function tearDown(): void
4747 }
4848 $ this ->object = null ;
4949 }
50-
50+
51+ /**
52+ * @covers ezsql\Database\ez_mysqli::settings
53+ */
54+ public function testSettings ()
55+ {
56+ $ this ->assertTrue ($ this ->object ->settings () instanceof \ezsql \ConfigInterface);
57+ }
58+
5159 /**
5260 * @covers ezsql\Database\ez_mysqli::quick_connect
5361 */
@@ -85,6 +93,7 @@ public function testConnect()
8593
8694 /**
8795 * @covers ezsql\Database\ez_mysqli::select
96+ * @covers ezsql\Database\ez_mysqli::reset
8897 */
8998 public function testSelect ()
9099 {
@@ -99,7 +108,10 @@ public function testSelect()
99108 set_error_handler (array ($ this , 'errorHandler ' ));
100109 $ this ->assertTrue ($ this ->object ->select ('' ));
101110 $ this ->object ->disconnect ();
102- $ this ->assertFalse ($ this ->object ->select ('notest ' ));
111+ $ this ->assertFalse ($ this ->object ->select ('notest ' ));
112+ $ this ->object ->connect ();
113+ $ this ->object ->reset ();
114+ $ this ->assertFalse ($ this ->object ->select (self ::TEST_DB_NAME ));
103115 $ this ->object ->connect ();
104116 $ this ->assertFalse ($ this ->object ->select ('notest ' ));
105117 $ this ->assertTrue ($ this ->object ->select (self ::TEST_DB_NAME ));
@@ -189,23 +201,23 @@ public function testGet_results()
189201 }
190202
191203 /**
192- * @covers ezsql\Database\ez_mysqli::settings
204+ * @covers ezsql\Database\ez_mysqli::getHost
193205 */
194206 public function testGetHost ()
195207 {
196208 $ this ->assertEquals (self ::TEST_DB_HOST , $ this ->object ->getHost ());
197209 }
198210
199211 /**
200- * @covers ezsql\Database\ez_mysqli::settings
212+ * @covers ezsql\Database\ez_mysqli::getPort
201213 */
202214 public function testGetPort ()
203215 {
204216 $ this ->assertEquals (self ::TEST_DB_PORT , $ this ->object ->getPort ());
205217 }
206218
207219 /**
208- * @covers ezsql\Database\ez_mysqli::settings
220+ * @covers ezsql\Database\ez_mysqli::getCharset
209221 */
210222 public function testGetCharset ()
211223 {
@@ -265,13 +277,14 @@ public function testDrop()
265277
266278 /**
267279 * @covers ezsql\ezQuery::insert
280+ * @covers ezsql\Database\ez_mysqli::query
281+ * @covers ezsql\Database\ez_mysqli::prepareValues
268282 */
269283 public function testInsert ()
270284 {
271285 $ object = Database::initialize ('mysqli ' , [self ::TEST_DB_USER , self ::TEST_DB_PASSWORD , self ::TEST_DB_NAME ]);
272286 $ this ->assertEquals ($ this ->object , $ object );
273287 $ object ->connect ();
274- $ object ->prepareOff ();
275288 $ object ->create ('unit_test ' ,
276289 \column ('id ' , INTR , 11 , \AUTO ),
277290 \column ('test_key ' , VARCHAR , 50 ),
@@ -392,7 +405,7 @@ public function testSelecting()
392405 $ this ->assertEquals ('testing 1 ' , $ row ->test_key );
393406 }
394407 }
395-
408+
396409 /**
397410 * @covers ezsql\ezQuery::create_select
398411 */
@@ -479,6 +492,8 @@ public function testWhere()
479492
480493 /**
481494 * @covers ezsql\Database\ez_mysqli::query_prepared
495+ * @covers ezsql\Database\ez_mysqli::fetch_prepared_result
496+ * @covers ezsql\Database\ez_mysqli::prepareValues
482497 */
483498 public function testQuery_prepared () {
484499 $ this ->object ->prepareOff ();
0 commit comments