@@ -160,10 +160,22 @@ protected function assertNotContains($needle, $haystack, $message = '')
160
160
*/
161
161
protected function assertRegExp ($ pattern , $ string , $ message = '' )
162
162
{
163
+ TestCase::assertRegExp ($ pattern , $ string , $ message );
164
+ }
163
165
166
+ /**
167
+ * Checks that string match with pattern
168
+ *
169
+ * Alias of assertRegExp
170
+ * @param string $pattern
171
+ * @param string $string
172
+ * @param string $message
173
+ */
174
+ protected function assertMatchesRegularExpression ($ pattern , $ string , $ message = '' )
175
+ {
164
176
TestCase::assertRegExp ($ pattern , $ string , $ message );
165
177
}
166
-
178
+
167
179
/**
168
180
* Checks that string not match with pattern
169
181
*
@@ -176,6 +188,19 @@ protected function assertNotRegExp($pattern, $string, $message = '')
176
188
TestCase::assertNotRegExp ($ pattern , $ string , $ message );
177
189
}
178
190
191
+ /**
192
+ * Checks that string not match with pattern
193
+ *
194
+ * Alias of assertNotRegExp
195
+ * @param string $pattern
196
+ * @param string $string
197
+ * @param string $message
198
+ */
199
+ protected function assertDoesNotMatchRegularExpression ($ pattern , $ string , $ message = '' )
200
+ {
201
+ TestCase::assertNotRegExp ($ pattern , $ string , $ message );
202
+ }
203
+
179
204
/**
180
205
* Checks that a string starts with the given prefix.
181
206
*
@@ -324,8 +349,8 @@ protected function assertFileExists($filename, $message = '')
324
349
{
325
350
Assert::assertFileExists ($ filename , $ message );
326
351
}
327
-
328
-
352
+
353
+
329
354
/**
330
355
* Checks if file doesn't exist
331
356
*
@@ -337,6 +362,18 @@ protected function assertFileNotExists($filename, $message = '')
337
362
TestCase::assertFileNotExists ($ filename , $ message );
338
363
}
339
364
365
+ /**
366
+ * Checks if file doesn't exist
367
+ *
368
+ * Alias of assertFileNotExists
369
+ * @param string $filename
370
+ * @param string $message
371
+ */
372
+ protected function assertFileDoesNotExist ($ filename , $ message = '' )
373
+ {
374
+ TestCase::assertFileNotExists ($ filename , $ message );
375
+ }
376
+
340
377
/**
341
378
* @param $expected
342
379
* @param $actual
0 commit comments