@@ -88,8 +88,8 @@ public function testInsertData()
88
88
public function testQueryData ()
89
89
{
90
90
$ output = $ this ->runCommand ('query-data ' );
91
- $ this ->assertContains ('SingerId: 1, AlbumId: 1, AlbumTitle: Go, Go, Go ' , $ output );
92
- $ this ->assertContains ('SingerId: 1, AlbumId: 2, AlbumTitle: Total Junk ' , $ output );
91
+ $ this ->assertContains ('SingerId: 1, AlbumId: 1, AlbumTitle: Total Junk ' , $ output );
92
+ $ this ->assertContains ('SingerId: 1, AlbumId: 2, AlbumTitle: Go, Go, Go ' , $ output );
93
93
$ this ->assertContains ('SingerId: 2, AlbumId: 1, AlbumTitle: Green ' , $ output );
94
94
$ this ->assertContains ('SingerId: 2, AlbumId: 2, AlbumTitle: Forever Hold Your Peace ' , $ output );
95
95
$ this ->assertContains ('SingerId: 2, AlbumId: 3, AlbumTitle: Terrified ' , $ output );
@@ -117,8 +117,8 @@ public function testBatchQueryData()
117
117
public function testReadData ()
118
118
{
119
119
$ output = $ this ->runCommand ('read-data ' );
120
- $ this ->assertContains ('SingerId: 1, AlbumId: 1, AlbumTitle: Go, Go, Go ' , $ output );
121
- $ this ->assertContains ('SingerId: 1, AlbumId: 2, AlbumTitle: Total Junk ' , $ output );
120
+ $ this ->assertContains ('SingerId: 1, AlbumId: 1, AlbumTitle: Total Junk ' , $ output );
121
+ $ this ->assertContains ('SingerId: 1, AlbumId: 2, AlbumTitle: Go, Go, Go ' , $ output );
122
122
$ this ->assertContains ('SingerId: 2, AlbumId: 1, AlbumTitle: Green ' , $ output );
123
123
$ this ->assertContains ('SingerId: 2, AlbumId: 2, AlbumTitle: Forever Hold Your Peace ' , $ output );
124
124
$ this ->assertContains ('SingerId: 2, AlbumId: 3, AlbumTitle: Terrified ' , $ output );
@@ -184,7 +184,7 @@ public function testQueryDataWithIndex()
184
184
{
185
185
$ output = $ this ->runCommand ('query-data-with-index ' );
186
186
$ this ->assertContains ('AlbumId: 2, AlbumTitle: Forever Hold Your Peace ' , $ output );
187
- $ this ->assertContains ('AlbumId: 1 , AlbumTitle: Go, Go, Go ' , $ output );
187
+ $ this ->assertContains ('AlbumId: 2 , AlbumTitle: Go, Go, Go ' , $ output );
188
188
}
189
189
190
190
/**
@@ -194,8 +194,8 @@ public function testReadDataWithIndex()
194
194
{
195
195
$ output = $ this ->runCommand ('read-data-with-index ' );
196
196
197
- $ this ->assertContains ('AlbumId: 2 , AlbumTitle: Total Junk ' , $ output );
198
- $ this ->assertContains ('AlbumId: 1 , AlbumTitle: Go, Go, Go ' , $ output );
197
+ $ this ->assertContains ('AlbumId: 1 , AlbumTitle: Total Junk ' , $ output );
198
+ $ this ->assertContains ('AlbumId: 2 , AlbumTitle: Go, Go, Go ' , $ output );
199
199
$ this ->assertContains ('AlbumId: 1, AlbumTitle: Green ' , $ output );
200
200
$ this ->assertContains ('AlbumId: 3, AlbumTitle: Terrified ' , $ output );
201
201
$ this ->assertContains ('AlbumId: 2, AlbumTitle: Forever Hold Your Peace ' , $ output );
@@ -218,10 +218,10 @@ public function testReadDataWithStoringIndex()
218
218
{
219
219
$ output = $ this ->runCommand ('read-data-with-storing-index ' );
220
220
$ this ->assertContains ('AlbumId: 2, AlbumTitle: Forever Hold Your Peace, MarketingBudget: ' , $ output );
221
- $ this ->assertContains ('AlbumId: 1 , AlbumTitle: Go, Go, Go, MarketingBudget: ' , $ output );
221
+ $ this ->assertContains ('AlbumId: 2 , AlbumTitle: Go, Go, Go, MarketingBudget: ' , $ output );
222
222
$ this ->assertContains ('AlbumId: 1, AlbumTitle: Green, MarketingBudget: ' , $ output );
223
223
$ this ->assertContains ('AlbumId: 3, AlbumTitle: Terrified, MarketingBudget: ' , $ output );
224
- $ this ->assertContains ('AlbumId: 2 , AlbumTitle: Total Junk, MarketingBudget: ' , $ output );
224
+ $ this ->assertContains ('AlbumId: 1 , AlbumTitle: Total Junk, MarketingBudget: ' , $ output );
225
225
}
226
226
227
227
/**
@@ -230,8 +230,8 @@ public function testReadDataWithStoringIndex()
230
230
public function testReadOnlyTransaction ()
231
231
{
232
232
$ output = $ this ->runCommand ('read-only-transaction ' );
233
- $ this ->assertContains ('SingerId: 1, AlbumId: 1, AlbumTitle: Go, Go, Go ' , $ output );
234
- $ this ->assertContains ('SingerId: 1, AlbumId: 2, AlbumTitle: Total Junk ' , $ output );
233
+ $ this ->assertContains ('SingerId: 1, AlbumId: 1, AlbumTitle: Total Junk ' , $ output );
234
+ $ this ->assertContains ('SingerId: 1, AlbumId: 2, AlbumTitle: Go, Go, Go ' , $ output );
235
235
$ this ->assertContains ('SingerId: 2, AlbumId: 1, AlbumTitle: Green ' , $ output );
236
236
$ this ->assertContains ('SingerId: 2, AlbumId: 2, AlbumTitle: Forever Hold Your Peace ' , $ output );
237
237
$ this ->assertContains ('SingerId: 2, AlbumId: 3, AlbumTitle: Terrified ' , $ output );
@@ -249,13 +249,13 @@ public function testReadStaleData()
249
249
sleep (16 - $ elapsed );
250
250
}
251
251
$ output = $ this ->runCommand ('read-stale-data ' );
252
- $ this ->assertContains ('SingerId: 1, AlbumId: 1, AlbumTitle: Go, Go, Go ' , $ output );
253
- $ this ->assertContains ('SingerId: 1, AlbumId: 2, AlbumTitle: Total Junk ' , $ output );
252
+ $ this ->assertContains ('SingerId: 1, AlbumId: 1, AlbumTitle: Total Junk ' , $ output );
253
+ $ this ->assertContains ('SingerId: 1, AlbumId: 2, AlbumTitle: Go, Go, Go ' , $ output );
254
254
$ this ->assertContains ('SingerId: 2, AlbumId: 1, AlbumTitle: Green ' , $ output );
255
255
$ this ->assertContains ('SingerId: 2, AlbumId: 2, AlbumTitle: Forever Hold Your Peace ' , $ output );
256
256
$ this ->assertContains ('SingerId: 2, AlbumId: 3, AlbumTitle: Terrified ' , $ output );
257
257
}
258
-
258
+
259
259
/**
260
260
* @depends testReadStaleData
261
261
*/
@@ -265,7 +265,7 @@ public function testCreateTableTimestamp()
265
265
$ this ->assertContains ('Waiting for operation to complete... ' , $ output );
266
266
$ this ->assertContains ('Created Performances table in database test- ' , $ output );
267
267
}
268
-
268
+
269
269
/**
270
270
* @depends testCreateTableTimestamp
271
271
*/
@@ -274,7 +274,7 @@ public function testInsertDataTimestamp()
274
274
$ output = $ this ->runCommand ('insert-data-timestamp ' );
275
275
$ this ->assertEquals ('Inserted data. ' . PHP_EOL , $ output );
276
276
}
277
-
277
+
278
278
/**
279
279
* @depends testInsertDataTimestamp
280
280
*/
@@ -284,7 +284,7 @@ public function testAddTimestampColumn()
284
284
$ this ->assertContains ('Waiting for operation to complete... ' , $ output );
285
285
$ this ->assertContains ('Added LastUpdateTime as a commit timestamp column in Albums table ' , $ output );
286
286
}
287
-
287
+
288
288
/**
289
289
* @depends testAddTimestampColumn
290
290
*/
@@ -293,7 +293,7 @@ public function testUpdateDataTimestamp()
293
293
$ output = $ this ->runCommand ('update-data-timestamp ' );
294
294
$ this ->assertEquals ('Updated data. ' . PHP_EOL , $ output );
295
295
}
296
-
296
+
297
297
/**
298
298
* @depends testUpdateDataTimestamp
299
299
*/
0 commit comments