File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2225,15 +2225,15 @@ test it in a real application::
2225
2225
$responseData = $service->createArticle($requestData);
2226
2226
2227
2227
// Assert
2228
- self:: assertSame('POST', $mockResponse->getRequestMethod());
2229
- self:: assertSame('https://example.com/api/article', $mockResponse->getRequestUrl());
2230
- self:: assertContains(
2228
+ $this-> assertSame('POST', $mockResponse->getRequestMethod());
2229
+ $this-> assertSame('https://example.com/api/article', $mockResponse->getRequestUrl());
2230
+ $this-> assertContains(
2231
2231
'Content-Type: application/json',
2232
2232
$mockResponse->getRequestOptions()['headers']
2233
2233
);
2234
- self:: assertSame($expectedRequestData, $mockResponse->getRequestOptions()['body']);
2234
+ $this-> assertSame($expectedRequestData, $mockResponse->getRequestOptions()['body']);
2235
2235
2236
- self:: assertSame($responseData, $expectedResponseData);
2236
+ $this-> assertSame($responseData, $expectedResponseData);
2237
2237
}
2238
2238
}
2239
2239
Original file line number Diff line number Diff line change @@ -1027,7 +1027,7 @@ Browser Assertions
1027
1027
// add this method in some custom class imported in your tests
1028
1028
protected static function assertMyOwnCustomAssert(): void
1029
1029
{
1030
- self:: assertThatForClient(new SomeCustomConstraint());
1030
+ $this-> assertThatForClient(new SomeCustomConstraint());
1031
1031
}
1032
1032
1033
1033
Crawler Assertions
You can’t perform that action at this time.
0 commit comments