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
This commit is contained in:
jordanbrauer
2021-07-21 20:38:20 -05:00
parent 79ff332afe
commit 60c0ad006f

View File

@ -73,6 +73,7 @@ trait Testable
{
$this->__test = $test;
$this->__description = $description;
self::$beforeAll = self::$afterAll = null;
parent::__construct('__test', $data);
}