From 5723da104345315cb56bbfc7897cadf2187f99fb Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Mon, 20 Mar 2023 16:10:53 +0000 Subject: [PATCH] tests: updates snapshot testing --- tests/Environments/Windows.php | 1 - tests/Pest.php | 3 ++- tests/Visual/Parallel.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Environments/Windows.php b/tests/Environments/Windows.php index c646a7e0..54122f54 100644 --- a/tests/Environments/Windows.php +++ b/tests/Environments/Windows.php @@ -3,4 +3,3 @@ test('global functions are loaded', function () { expect(helper_returns_string())->toBeString(); }); - diff --git a/tests/Pest.php b/tests/Pest.php index 40095334..23daca74 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -26,6 +26,7 @@ uses() }) ->in('Hooks'); -function helper_returns_string() { +function helper_returns_string() +{ return 'string'; } diff --git a/tests/Visual/Parallel.php b/tests/Visual/Parallel.php index 237345d7..d985d69f 100644 --- a/tests/Visual/Parallel.php +++ b/tests/Visual/Parallel.php @@ -15,6 +15,6 @@ $run = function () { }; test('parallel', function () use ($run) { - expect($run())->toContain('Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 15 skipped, 640 passed (1578 assertions)') + expect($run())->toContain('Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 15 skipped, 641 passed (1579 assertions)') ->toContain('Parallel: 3 processes'); })->skip(PHP_OS_FAMILY === 'Windows');