From 9ceb0834aeedb771318d86b6033faa0fdb7972f0 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 22 Aug 2024 21:07:39 +0100 Subject: [PATCH] chore: updates snapshots --- tests/.snapshots/success.txt | 3 ++- tests/Unit/TestSuite.php | 6 +----- tests/Visual/Parallel.php | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index 2fbed06e..3dde887c 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -1381,6 +1381,7 @@ PASS Tests\Unit\TestSuite ✓ it does not allow to add the same test description twice + ✓ it does not allow static closures ✓ it alerts users about tests with arguments but no input ✓ it can return an array of all test suite filenames @@ -1424,4 +1425,4 @@ WARN Tests\Visual\Version - visual snapshot of help command output - Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 20 skipped, 1013 passed (2405 assertions) \ No newline at end of file + Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 20 skipped, 1014 passed (2407 assertions) \ No newline at end of file diff --git a/tests/Unit/TestSuite.php b/tests/Unit/TestSuite.php index ee78587d..d35b4f29 100644 --- a/tests/Unit/TestSuite.php +++ b/tests/Unit/TestSuite.php @@ -24,11 +24,7 @@ it('does not allow static closures', function () { $testSuite->tests->set($method); })->throws( TestClosureMustNotBeStatic::class, - sprintf( - 'The test `%s` closure must not be static in %s.', - 'bar', - 'foo', - ) + 'Test closure must not be static. Please remove the `static` keyword from the `bar` method in `foo`.', ); it('alerts users about tests with arguments but no input', function () { diff --git a/tests/Visual/Parallel.php b/tests/Visual/Parallel.php index 29079723..3dad50db 100644 --- a/tests/Visual/Parallel.php +++ b/tests/Visual/Parallel.php @@ -16,7 +16,7 @@ $run = function () { test('parallel', function () use ($run) { expect($run('--exclude-group=integration')) - ->toContain('Tests: 1 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 16 skipped, 998 passed (2358 assertions)') + ->toContain('Tests: 1 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 16 skipped, 999 passed (2360 assertions)') ->toContain('Parallel: 3 processes'); })->skipOnWindows();