@@ -118,9 +118,7 @@ public function testGetVersionWithExceptionNoAutoincrement()
118
118
->will ($ this ->returnValue ([]));
119
119
120
120
$ this ->expectException ('Exception ' );
121
- $ this ->expectExceptionMessage (
122
- __ ("Table status for %1 is incorrect. Can`t fetch version id. " , [$ changelogTableName ])
123
- );
121
+ $ this ->expectExceptionMessage ("Table status for {$ changelogTableName } is incorrect. Can`t fetch version id. " );
124
122
$ this ->model ->setViewId ('viewIdtest ' );
125
123
$ this ->model ->getVersion ();
126
124
}
@@ -132,7 +130,7 @@ public function testGetVersionWithExceptionNoTable()
132
130
$ this ->mockGetTableName ();
133
131
134
132
$ this ->expectException ('Exception ' );
135
- $ this ->expectExceptionMessage (__ ( "Table %1 does not exist " , [ $ changelogTableName ]) );
133
+ $ this ->expectExceptionMessage ("Table { $ changelogTableName } does not exist " );
136
134
$ this ->model ->setViewId ('viewIdtest ' );
137
135
$ this ->model ->getVersion ();
138
136
}
@@ -144,7 +142,7 @@ public function testDrop()
144
142
$ this ->mockGetTableName ();
145
143
146
144
$ this ->expectException ('Exception ' );
147
- $ this ->expectExceptionMessage (__ ( "Table %1 does not exist " , [ $ changelogTableName ]) );
145
+ $ this ->expectExceptionMessage ("Table { $ changelogTableName } does not exist " );
148
146
$ this ->model ->setViewId ('viewIdtest ' );
149
147
$ this ->model ->drop ();
150
148
}
@@ -236,7 +234,7 @@ public function testGetListWithException()
236
234
$ this ->mockGetTableName ();
237
235
238
236
$ this ->expectException ('Exception ' );
239
- $ this ->expectExceptionMessage (__ ( "Table %1 does not exist " , [ $ changelogTableName ]) );
237
+ $ this ->expectExceptionMessage ("Table { $ changelogTableName } does not exist " );
240
238
$ this ->model ->setViewId ('viewIdtest ' );
241
239
$ this ->model ->getList (mt_rand (1 , 200 ), mt_rand (201 , 400 ));
242
240
}
@@ -248,7 +246,7 @@ public function testClearWithException()
248
246
$ this ->mockGetTableName ();
249
247
250
248
$ this ->expectException ('Exception ' );
251
- $ this ->expectExceptionMessage (__ ( "Table %1 does not exist " , [ $ changelogTableName ]) );
249
+ $ this ->expectExceptionMessage ("Table { $ changelogTableName } does not exist " );
252
250
$ this ->model ->setViewId ('viewIdtest ' );
253
251
$ this ->model ->clear (mt_rand (1 , 200 ));
254
252
}
0 commit comments