diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index 90b1b0852..8e4456031 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -1425,6 +1425,9 @@ ✓ nested → nested afterEach execution order ✓ global afterEach execution order + PASS Tests\Hooks\BeforeAllTest + ✓ beforeAll is called + PASS Tests\Hooks\BeforeEachTest ✓ global beforeEach execution order @@ -1708,4 +1711,4 @@ WARN Tests\Visual\Version - visual snapshot of help command output - Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 33 skipped, 1152 passed (2744 assertions) \ No newline at end of file + Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 33 skipped, 1145 passed (2740 assertions) diff --git a/tests/Pest.php b/tests/Pest.php index 13f9956c5..f09f579d9 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -74,7 +74,7 @@ ->toHaveProperty('afterAll') ->and($_SERVER['globalHook']->afterAll) ->toBe(0) - ->and($_SERVER['beforeAll']) + ->and($_SERVER['globalHook']->beforeAll) ->toBe(1); $_SERVER['globalHook']->afterAll = 1; diff --git a/tests/Visual/Parallel.php b/tests/Visual/Parallel.php index 036f51d74..b3da24727 100644 --- a/tests/Visual/Parallel.php +++ b/tests/Visual/Parallel.php @@ -16,7 +16,7 @@ test('parallel', function () use ($run) { expect($run('--exclude-group=integration')) - ->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 24 skipped, 1142 passed (2720 assertions)') + ->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 24 skipped, 1135 passed (2716 assertions)') ->toContain('Parallel: 3 processes'); })->skipOnWindows();