@@ -45,9 +45,6 @@ protected function tearDown(): void
4545 $ this ->object = null ;
4646 } // tearDown
4747
48- /**
49- * @covers ezsql\Database\ez_pdo::settings
50- */
5148 public function testSettings ()
5249 {
5350 $ this ->assertTrue ($ this ->object ->settings () instanceof \ezsql \ConfigInterface);
@@ -56,28 +53,18 @@ public function testSettings()
5653 /**
5754 * Here starts the MySQL PDO unit test
5855 */
59-
60- /**
61- * @covers ezsql\Database\ez_pdo::connect
62- */
6356 public function testMySQLConnect ()
6457 {
6558 $ this ->assertTrue ($ this ->object ->connect ('mysql:host= ' . self ::TEST_DB_HOST . ';dbname= ' . self ::TEST_DB_NAME . ';port= ' . self ::TEST_DB_PORT , self ::TEST_DB_USER , self ::TEST_DB_PASSWORD ));
6659
6760 $ this ->assertTrue ($ this ->object ->connect (null ));
6861 } // testMySQLConnect
6962
70- /**
71- * @covers ezsql\Database\ez_pdo::quick_connect
72- */
7363 public function testMySQLQuick_connect ()
7464 {
7565 $ this ->assertTrue ($ this ->object ->quick_connect ('mysql:host= ' . self ::TEST_DB_HOST . ';dbname= ' . self ::TEST_DB_NAME . ';port= ' . self ::TEST_DB_PORT , self ::TEST_DB_USER , self ::TEST_DB_PASSWORD ));
7666 }
7767
78- /**
79- * @covers ezsql\Database\ez_pdo::escape
80- */
8168 public function testMySQLEscape ()
8269 {
8370 $ this ->object ->quick_connect ('mysql:host= ' . self ::TEST_DB_HOST . ';dbname= ' . self ::TEST_DB_NAME . ';port= ' . self ::TEST_DB_PORT , self ::TEST_DB_USER , self ::TEST_DB_PASSWORD );
@@ -86,29 +73,18 @@ public function testMySQLEscape()
8673 $ this ->assertEquals ("This is\'nt escaped. " , $ result );
8774 } // testMySQLEscape
8875
89- /**
90- * @covers ezsql\Database\ez_pdo::sysDate
91- */
9276 public function testMySQLSysDate ()
9377 {
9478 $ this ->assertEquals ("datetime('now') " , $ this ->object ->sysDate ());
9579 }
9680
97- /**
98- * @covers ezsql\Database\ez_pdo::catch_error
99- */
10081 public function testMySQLCatch_error ()
10182 {
10283 $ this ->assertTrue ($ this ->object ->connect ());
10384
10485 $ this ->assertNull ($ this ->object ->catch_error ());
10586 }
10687
107- /**
108- * @covers ezsql\Database\ez_pdo::query
109- * @covers ezsql\Database\ez_pdo::processQuery
110- * @covers ezsql\Database\ez_pdo::processResult
111- */
11288 public function testMySQLQuery ()
11389 {
11490 $ this ->assertTrue ($ this ->object ->connect ('mysql:host= ' . self ::TEST_DB_HOST . ';dbname= ' . self ::TEST_DB_NAME . ';port= ' . self ::TEST_DB_PORT , self ::TEST_DB_USER , self ::TEST_DB_PASSWORD ));
@@ -118,17 +94,6 @@ public function testMySQLQuery()
11894 $ this ->assertEquals (0 , $ this ->object ->query ('DROP TABLE unit_test ' ));
11995 }
12096
121- /**
122- * @covers ezsql\ezsqlModel::secureSetup
123- * @covers ezsql\ezsqlModel::secureReset
124- * @covers ezsql\Database\ez_pdo::connect
125- * @covers ezsql\Database\ez_pdo::handle
126- * @covers ezsql\ezQuery::createCertificate
127- * @covers ezsql\ezQuery::drop
128- * @covers ezsql\ezQuery::create
129- * @covers \primary
130- * @covers \insert
131- */
13297 public function testSecureSetup ()
13398 {
13499 $ this ->object ->secureSetup ();
@@ -160,10 +125,6 @@ public function testSecureSetup()
160125 $ this ->object ->secureReset ();
161126 }
162127
163- /**
164- * @covers ezsql\ezQuery::create
165- * @covers ezsql\Database\ez_pdo::connect
166- */
167128 public function testCreate ()
168129 {
169130 $ this ->assertTrue ($ this ->object ->connect ());
@@ -189,19 +150,13 @@ public function testCreate()
189150 $ this ->object ->prepareOn ();
190151 }
191152
192- /**
193- * @covers ezsql\ezQuery::drop
194- */
195153 public function testDrop ()
196154 {
197155 $ this ->assertTrue ($ this ->object ->connect ('mysql:host= ' . self ::TEST_DB_HOST . ';dbname= ' . self ::TEST_DB_NAME . ';port= ' . self ::TEST_DB_PORT , self ::TEST_DB_USER , self ::TEST_DB_PASSWORD ));
198156
199157 $ this ->assertEquals ($ this ->object ->drop ('new_create_test ' ), 0 );
200158 }
201159
202- /**
203- * @covers ezsql\ezQuery::insert
204- */
205160 public function testInsert ()
206161 {
207162 $ this ->assertTrue ($ this ->object ->connect ('mysql:host= ' . self ::TEST_DB_HOST . ';dbname= ' . self ::TEST_DB_NAME . ';port= ' . self ::TEST_DB_PORT , self ::TEST_DB_USER , self ::TEST_DB_PASSWORD ));
@@ -213,10 +168,6 @@ public function testInsert()
213168 $ this ->assertEquals (0 , $ this ->object ->query ('DROP TABLE unit_test ' ));
214169 }
215170
216- /**
217- * @covers ezsql\ezQuery::update
218- * @covers \update
219- */
220171 public function testUpdate ()
221172 {
222173 $ this ->assertTrue ($ this ->object ->connect ('mysql:host= ' . self ::TEST_DB_HOST . ';dbname= ' . self ::TEST_DB_NAME . ';port= ' . self ::TEST_DB_PORT , self ::TEST_DB_USER , self ::TEST_DB_PASSWORD ));
@@ -247,9 +198,6 @@ public function testUpdate()
247198 $ this ->assertEquals (0 , $ this ->object ->query ('DROP TABLE unit_test ' ));
248199 }
249200
250- /**
251- * @covers ezsql\ezQuery::delete
252- */
253201 public function testDelete ()
254202 {
255203 $ this ->assertTrue ($ this ->object ->connect ('mysql:host= ' . self ::TEST_DB_HOST . ';dbname= ' . self ::TEST_DB_NAME . ';port= ' . self ::TEST_DB_PORT , self ::TEST_DB_USER , self ::TEST_DB_PASSWORD ));
@@ -283,15 +231,6 @@ public function testDelete()
283231 $ this ->assertEquals (0 , $ this ->object ->query ('DROP TABLE unit_test ' ));
284232 }
285233
286- /**
287- * @covers ezsql\ezQuery::selecting
288- * @covers ezsql\Database\ez_pdo::query
289- * @covers ezsql\Database\ez_pdo::processQuery
290- * @covers ezsql\Database\ez_pdo::processResult
291- * @covers ezsql\Database\ez_pdo::prepareValues
292- * @covers ezsql\Database\ez_pdo::query_prepared
293- * @covers \select
294- */
295234 public function testSelecting ()
296235 {
297236 $ this ->assertTrue ($ this ->object ->connect ('mysql:host= ' . self ::TEST_DB_HOST . ';dbname= ' . self ::TEST_DB_NAME . ';port= ' . self ::TEST_DB_PORT , self ::TEST_DB_USER , self ::TEST_DB_PASSWORD ));
@@ -326,16 +265,6 @@ public function testSelecting()
326265 $ this ->assertEquals (0 , $ this ->object ->query ('DROP TABLE unit_test ' ));
327266 }
328267
329- /**
330- * @covers ezsql\Database\ez_pdo::commit
331- * @covers ezsql\Database\ez_pdo::beginTransaction
332- * @covers ezsql\Database\ez_pdo::query
333- * @covers ezsql\Database\ez_pdo::processQuery
334- * @covers ezsql\Database\ez_pdo::processResult
335- * @covers ezsql\Database\ez_pdo::prepareValues
336- * @covers ezsql\Database\ez_pdo::query_prepared
337- * @covers \select
338- */
339268 public function testBeginTransactionCommit ()
340269 {
341270 $ this ->object ->connect ();
@@ -368,16 +297,6 @@ public function testBeginTransactionCommit()
368297 }
369298 }
370299
371- /**
372- * @covers ezsql\Database\ez_pdo::rollback
373- * @covers ezsql\Database\ez_pdo::beginTransaction
374- * @covers ezsql\Database\ez_pdo::query
375- * @covers ezsql\Database\ez_pdo::processQuery
376- * @covers ezsql\Database\ez_pdo::processResult
377- * @covers ezsql\Database\ez_pdo::prepareValues
378- * @covers ezsql\Database\ez_pdo::query_prepared
379- * @covers \select
380- */
381300 public function testBeginTransactionRollback ()
382301 {
383302 $ this ->object ->connect ();
@@ -419,11 +338,6 @@ public function testBeginTransactionRollback()
419338 }
420339 }
421340
422- /**
423- * @covers ezsql\Database\ez_pdo::disconnect
424- * @covers ezsql\Database\ez_pdo::reset
425- * @covers ezsql\Database\ez_pdo::handle
426- */
427341 public function testMySQLDisconnect ()
428342 {
429343 $ this ->assertTrue ($ this ->object ->connect ('mysql:host= ' . self ::TEST_DB_HOST . ';dbname= ' . self ::TEST_DB_NAME . ';port= ' . self ::TEST_DB_PORT , self ::TEST_DB_USER , self ::TEST_DB_PASSWORD ));
@@ -435,9 +349,6 @@ public function testMySQLDisconnect()
435349 $ this ->assertNull ($ this ->object ->handle ());
436350 } // testDisconnect
437351
438- /**
439- * @covers ezsql\Database\ez_pdo::connect
440- */
441352 public function testMySQLConnectWithOptions ()
442353 {
443354 $ options = array (
@@ -447,16 +358,6 @@ public function testMySQLConnectWithOptions()
447358 $ this ->assertTrue ($ this ->object ->connect ('mysql:host= ' . self ::TEST_DB_HOST . ';dbname= ' . self ::TEST_DB_NAME . ';port= ' . self ::TEST_DB_PORT , self ::TEST_DB_USER , self ::TEST_DB_PASSWORD , $ options ));
448359 }
449360
450- /**
451- * @covers ezsql\ezQuery::drop
452- * @covers ezsql\ezQuery::create
453- * @covers ezsql\ezsqlModel::queryResult
454- * @covers ezsql\Database\ez_pdo::query
455- * @covers ezsql\Database\ez_pdo::query_prepared
456- * @covers ezsql\Database\ez_pdo::processQuery
457- * @covers ezsql\Database\ez_pdo::processResult
458- * @covers ezsql\Database\ez_pdo::prepareValues
459- */
460361 public function testQuery_prepared ()
461362 {
462363 $ this ->object ->prepareOff ();
@@ -485,18 +386,12 @@ public function testQuery_prepared()
485386 $ this ->object ->drop ('prepare_test ' );
486387 } // testQuery_prepared
487388
488- /**
489- * @covers ezsql\Database\ez_pdo::__construct
490- */
491389 public function test__Construct_Error ()
492390 {
493391 $ this ->expectExceptionMessageRegExp ('/[Missing configuration details]/ ' );
494392 $ this ->assertNull (new ez_pdo ());
495393 }
496394
497- /**
498- * @covers ezsql\Database\ez_pdo::__construct
499- */
500395 public function test__construct ()
501396 {
502397 unset($ GLOBALS ['ez ' . \Pdo]);
0 commit comments