From 60c0ad006f866f7e28dd45b6e324736d63692321 Mon Sep 17 00:00:00 2001 From: jordanbrauer <18744334+jordanbrauer@users.noreply.github.com> Date: Wed, 21 Jul 2021 20:38:20 -0500 Subject: [PATCH] fix: prevent the global hooks from piling up (#351) this happens due to the global `*All()` hooks (before & after) being defined as static. We should be a good citizen and we need to clean up our mess for the next person in the test instance constructor --- src/Concerns/Testable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Concerns/Testable.php b/src/Concerns/Testable.php index 5c72e0f3..91b73d72 100644 --- a/src/Concerns/Testable.php +++ b/src/Concerns/Testable.php @@ -73,6 +73,7 @@ trait Testable { $this->__test = $test; $this->__description = $description; + self::$beforeAll = self::$afterAll = null; parent::__construct('__test', $data); }