diff --git a/tests/Features/TestCycle.php b/tests/Features/TestCycle.php index 37b6d092..739d3a39 100644 --- a/tests/Features/TestCycle.php +++ b/tests/Features/TestCycle.php @@ -8,16 +8,16 @@ $foo->beforeEach = false; $foo->afterEach = false; $foo->afterAll = false; -beforeAll(function () { +beforeAll(function () use ($foo) { $foo->beforeAll = true; }); -beforeEach(function () { +beforeEach(function () use ($foo) { $foo->beforeEach = true; }); -afterEach(function () { +afterEach(function () use ($foo) { $foo->afterEach = true; }); -afterAll(function () { +afterAll(function () use ($foo) { $foo->afterAll = true; });