@@ -91,9 +91,6 @@ public function testInsertBatch()
9191 $ query = $ this ->db ->getLastQuery ();
9292 $ this ->assertInstanceOf (Query::class, $ query );
9393
94- $ raw = 'INSERT INTO "jobs" ("description", "id", "name") VALUES (:description:,:id:,:name:), (:description.1:,:id.1:,:name.1:) ' ;
95- $ this ->assertSame ($ raw , str_replace ("\n" , ' ' , $ query ->getOriginalQuery ()));
96-
9794 $ expected = "INSERT INTO \"jobs \" ( \"description \", \"id \", \"name \") VALUES ('There''s something in your teeth',2,'Commedian'), ('I am yellow',3,'Cab Driver') " ;
9895 $ this ->assertSame ($ expected , str_replace ("\n" , ' ' , $ query ->getQuery ()));
9996 }
@@ -121,9 +118,6 @@ public function testInsertBatchWithoutEscape()
121118 $ query = $ this ->db ->getLastQuery ();
122119 $ this ->assertInstanceOf (Query::class, $ query );
123120
124- $ raw = 'INSERT INTO "jobs" ("description", "id", "name") VALUES (:description:,:id:,:name:), (:description.1:,:id.1:,:name.1:) ' ;
125- $ this ->assertSame ($ raw , str_replace ("\n" , ' ' , $ query ->getOriginalQuery ()));
126-
127121 $ expected = 'INSERT INTO "jobs" ("description", "id", "name") VALUES (1 + 2,2,1 + 1), (2 + 2,3,2 + 1) ' ;
128122 $ this ->assertSame ($ expected , str_replace ("\n" , ' ' , $ query ->getQuery ()));
129123 }
@@ -148,9 +142,6 @@ public function testInsertBatchWithFieldsEndingInNumbers()
148142 $ query = $ this ->db ->getLastQuery ();
149143 $ this ->assertInstanceOf (Query::class, $ query );
150144
151- $ raw = 'INSERT INTO "ip_table" ("ip", "ip2") VALUES (:ip:,:ip2:), (:ip.1:,:ip2.1:), (:ip.2:,:ip2.2:), (:ip.3:,:ip2.3:) ' ;
152- $ this ->assertSame ($ raw , str_replace ("\n" , ' ' , $ query ->getOriginalQuery ()));
153-
154145 $ expected = "INSERT INTO \"ip_table \" ( \"ip \", \"ip2 \") VALUES ('1.1.1.0','1.1.1.2'), ('2.2.2.0','2.2.2.2'), ('3.3.3.0','3.3.3.2'), ('4.4.4.0','4.4.4.2') " ;
155146 $ this ->assertSame ($ expected , str_replace ("\n" , ' ' , $ query ->getQuery ()));
156147 }
0 commit comments