@@ -107,8 +107,10 @@ public function testWhere(): void
107107 $ update = $ this ->update ()->table ('test ' )->set (['username ' => 'admin ' ])
108108 ->where ('test.id ' , '= ' , 1 )
109109 ->orWhere ('db.test.id ' , '> ' , 2 );
110- $ this ->assertSame ("UPDATE `test` SET `username`='admin' WHERE `test`.`id` = '1' OR `db`.`test`.`id` > '2'; " ,
111- $ update ->build ());
110+ $ this ->assertSame (
111+ "UPDATE `test` SET `username`='admin' WHERE `test`.`id` = '1' OR `db`.`test`.`id` > '2'; " ,
112+ $ update ->build ()
113+ );
112114 }
113115
114116 /**
@@ -122,14 +124,18 @@ public function testIncrementDecrement(): void
122124 $ update = $ this ->update ()->table ('users ' )->increment ('voted ' , 1 )
123125 ->where ('test.id ' , '= ' , 1 )
124126 ->orWhere ('db.test.id ' , '> ' , 2 );
125- $ this ->assertSame ("UPDATE `users` SET `voted`=`voted`+'1' WHERE `test`.`id` = '1' OR `db`.`test`.`id` > '2'; " ,
126- $ update ->build ());
127+ $ this ->assertSame (
128+ "UPDATE `users` SET `voted`=`voted`+'1' WHERE `test`.`id` = '1' OR `db`.`test`.`id` > '2'; " ,
129+ $ update ->build ()
130+ );
127131
128132 $ update = $ this ->update ()->table ('users ' )->decrement ('voted ' , 10 )
129133 ->where ('test.id ' , '= ' , 1 )
130134 ->orWhere ('db.test.id ' , '> ' , 2 );
131- $ this ->assertSame ("UPDATE `users` SET `voted`=`voted`-'10' WHERE `test`.`id` = '1' OR `db`.`test`.`id` > '2'; " ,
132- $ update ->build ());
135+ $ this ->assertSame (
136+ "UPDATE `users` SET `voted`=`voted`-'10' WHERE `test`.`id` = '1' OR `db`.`test`.`id` > '2'; " ,
137+ $ update ->build ()
138+ );
133139
134140 $ update = $ this ->update ()->table ('users ' )->set (['votes ' => new RawExp ('votes+1 ' )])->where ('id ' , '= ' , '1 ' );
135141 $ this ->assertSame ("UPDATE `users` SET `votes`=votes+1 WHERE `id` = '1'; " , $ update ->build ());
0 commit comments