We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c2bbb0 commit 9745017Copy full SHA for 9745017
src/Client/MockServer.php
@@ -62,6 +62,16 @@ public function removeById(string $mockRequestId): void
62
$response->getBody()->getContents()
63
);
64
}
65
+ public function removeAllExpectations(): void
66
+ {
67
+ $request = new Request('PUT', '/mockserver/clear?type=expectations');
68
+ $response = $this->mockserverClient->sendRequest($request);
69
+ Assert::assertEquals(
70
+ 200,
71
+ $response->getStatusCode(),
72
+ $response->getBody()->getContents()
73
+ );
74
+ }
75
76
public function clearLogs(): void
77
{
0 commit comments