File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ public function getHar(): Har
7878 }
7979
8080 /**
81- * Clear all recorded entries.
81+ * Reset and clear all recorded entries.
8282 */
83- public function clear (): void
83+ public function reset (): void
8484 {
8585 $ this ->entries = [];
8686 }
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ public function testFailedRequestIsNotRecorded(): void
272272 $ this ->assertEmpty ($ recorder ->getHar ()->getLog ()->getEntries ());
273273 }
274274
275- public function testClearRemovesAllEntries (): void
275+ public function testResetRemovesAllEntries (): void
276276 {
277277 $ innerClient = $ this ->createMock (ClientInterface::class);
278278 $ innerClient ->method ('sendRequest ' )->willReturn (new Response (200 ));
@@ -283,7 +283,7 @@ public function testClearRemovesAllEntries(): void
283283
284284 $ this ->assertCount (2 , $ recorder ->getHar ()->getLog ()->getEntries ());
285285
286- $ recorder ->clear ();
286+ $ recorder ->reset ();
287287
288288 $ this ->assertEmpty ($ recorder ->getHar ()->getLog ()->getEntries ());
289289 }
You can’t perform that action at this time.
0 commit comments