File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ public function theResponseShouldContain($text)
206206 {
207207 $ expectedRegexp = '/ ' . preg_quote ($ text ) . '/i ' ;
208208 $ actual = (string ) $ this ->response ->getBody ();
209- Assertions::assertRegExp ($ expectedRegexp , $ actual );
209+ Assertions::assertMatchesRegularExpression ($ expectedRegexp , $ actual );
210210 }
211211
212212 /**
@@ -220,7 +220,7 @@ public function theResponseShouldNotContain($text)
220220 {
221221 $ expectedRegexp = '/ ' . preg_quote ($ text ) . '/ ' ;
222222 $ actual = (string ) $ this ->response ->getBody ();
223- Assertions::assertNotRegExp ($ expectedRegexp , $ actual );
223+ Assertions::assertDoesNotMatchRegularExpression ($ expectedRegexp , $ actual );
224224 }
225225
226226 /**
@@ -270,7 +270,7 @@ protected function assertContains($expected, $actual)
270270
271271 if (preg_match ('/^\%.+\%$/ ' , $ expected , $ result )) {
272272 $ pattern = sprintf ('/%s/ ' , trim ($ result [0 ], '% ' ));
273- Assertions::assertRegExp ($ pattern , $ actual );
273+ Assertions::assertMatchesRegularExpression ($ pattern , $ actual );
274274
275275 return ;
276276 }
You can’t perform that action at this time.
0 commit comments