From cdac49a7300a9411332f554343276b224ad6afaa Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sat, 26 Dec 2020 23:38:01 +0100 Subject: [PATCH] Recommend calling resetAll() on tearDown() (#12) --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d57a3d0..5819469 100644 --- a/README.md +++ b/README.md @@ -84,8 +84,11 @@ class MyTest extends WebTestCase // ... self::$client->request(...); + } - // To make sure we dont use affect other tests + protected function tearDown(): void + { + // To make sure we don't affect other tests ServiceMock::resetAll(); // You can include the RestoreServiceContainer trait to automatically reset services }