Skip to content

Commit 967ee3d

Browse files
committed
fix: deprecated usages
1 parent 5a206d1 commit 967ee3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Context/WebApiContext.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)