@@ -14,23 +14,23 @@ class DeleteQueryTest extends BaseTest
1414 *
1515 * @return void
1616 */
17- public function testInstance ()
17+ public function testInstance (): void
1818 {
1919 $ this ->assertInstanceOf (DeleteQuery::class, $ this ->delete ());
2020 }
2121
2222 /**
2323 * @return DeleteQuery
2424 */
25- protected function delete ()
25+ protected function delete (): DeleteQuery
2626 {
2727 return new DeleteQuery ($ this ->getConnection ());
2828 }
2929
3030 /**
3131 * Test.
3232 */
33- public function testFrom ()
33+ public function testFrom (): void
3434 {
3535 $ delete = $ this ->delete ()->from ('test ' );
3636 $ this ->assertSame ('DELETE FROM `test`; ' , $ delete ->build ());
@@ -40,7 +40,7 @@ public function testFrom()
4040 /**
4141 * Test.
4242 */
43- public function testLowPriority ()
43+ public function testLowPriority (): void
4444 {
4545 $ delete = $ this ->delete ()->lowPriority ()->from ('test ' );
4646 $ this ->assertSame ('DELETE LOW_PRIORITY FROM `test`; ' , $ delete ->build ());
@@ -49,7 +49,7 @@ public function testLowPriority()
4949 /**
5050 * Test.
5151 */
52- public function testIgnore ()
52+ public function testIgnore (): void
5353 {
5454 $ delete = $ this ->delete ()->ignore ()->from ('test ' )->where ('id ' , '= ' , '1 ' );
5555 $ this ->assertSame ("DELETE IGNORE FROM `test` WHERE `id` = '1'; " , $ delete ->build ());
@@ -61,7 +61,7 @@ public function testIgnore()
6161 /**
6262 * Test.
6363 */
64- public function testQuick ()
64+ public function testQuick (): void
6565 {
6666 $ delete = $ this ->delete ()->quick ()->from ('test ' )->where ('id ' , '= ' , '1 ' );
6767 $ this ->assertSame ("DELETE QUICK FROM `test` WHERE `id` = '1'; " , $ delete ->build ());
@@ -70,7 +70,7 @@ public function testQuick()
7070 /**
7171 * Test.
7272 */
73- public function testOrderBy ()
73+ public function testOrderBy (): void
7474 {
7575 $ delete = $ this ->delete ()->from ('test ' )->where ('id ' , '= ' , '1 ' )->orderBy ('id ' );
7676 $ this ->assertSame ("DELETE FROM `test` WHERE `id` = '1' ORDER BY `id`; " , $ delete ->build ());
@@ -88,7 +88,7 @@ public function testOrderBy()
8888 /**
8989 * Test.
9090 */
91- public function testLimit ()
91+ public function testLimit (): void
9292 {
9393 $ delete = $ this ->delete ()->from ('test ' )->where ('id ' , '> ' , '1 ' )->limit (10 );
9494 $ this ->assertSame ("DELETE FROM `test` WHERE `id` > '1' LIMIT 10; " , $ delete ->build ());
@@ -97,7 +97,7 @@ public function testLimit()
9797 /**
9898 * Test.
9999 */
100- public function testWhere ()
100+ public function testWhere (): void
101101 {
102102 $ delete = $ this ->delete ()->from ('test ' )->where ('id ' , '= ' , '1 ' )
103103 ->where ('test.id ' , '= ' , 1 )
@@ -108,13 +108,13 @@ public function testWhere()
108108 /**
109109 * Test.
110110 */
111- public function testTruncate ()
111+ public function testTruncate (): void
112112 {
113113 $ delete = $ this ->delete ()->from ('test ' )->truncate ();
114114 $ this ->assertSame ('TRUNCATE TABLE `test`; ' , $ delete ->build ());
115115 }
116116
117- protected function setUp ()
117+ protected function setUp (): void
118118 {
119119 parent ::setUp ();
120120 $ this ->createTestTable ();
0 commit comments