Skip to content

Commit 0c2bc58

Browse files
authored
docs: replace deprecated assertRegExp (#1374)
1 parent 2f3f454 commit 0c2bc58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distribution/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class BooksTest extends ApiTestCase
152152
'publicationDate' => '1985-07-31T00:00:00+00:00',
153153
'reviews' => [],
154154
]);
155-
$this->assertRegExp('~^/books/\d+$~', $response->toArray()['@id']);
155+
$this->assertMatchesRegularExpression('~^/books/\d+$~', $response->toArray()['@id']);
156156
$this->assertMatchesResourceItemJsonSchema(Book::class);
157157
}
158158

0 commit comments

Comments
 (0)