chore: updates snapshots

This commit is contained in:
Nuno Maduro
2024-08-22 21:07:39 +01:00
parent 86d2191cae
commit 9ceb0834ae
3 changed files with 4 additions and 7 deletions

View File

@ -1381,6 +1381,7 @@
PASS Tests\Unit\TestSuite PASS Tests\Unit\TestSuite
✓ it does not allow to add the same test description twice ✓ 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 alerts users about tests with arguments but no input
✓ it can return an array of all test suite filenames ✓ it can return an array of all test suite filenames
@ -1424,4 +1425,4 @@
WARN Tests\Visual\Version WARN Tests\Visual\Version
- visual snapshot of help command output - visual snapshot of help command output
Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 20 skipped, 1013 passed (2405 assertions) Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 20 skipped, 1014 passed (2407 assertions)

View File

@ -24,11 +24,7 @@ it('does not allow static closures', function () {
$testSuite->tests->set($method); $testSuite->tests->set($method);
})->throws( })->throws(
TestClosureMustNotBeStatic::class, TestClosureMustNotBeStatic::class,
sprintf( 'Test closure must not be static. Please remove the `static` keyword from the `bar` method in `foo`.',
'The test `%s` closure must not be static in %s.',
'bar',
'foo',
)
); );
it('alerts users about tests with arguments but no input', function () { it('alerts users about tests with arguments but no input', function () {

View File

@ -16,7 +16,7 @@ $run = function () {
test('parallel', function () use ($run) { test('parallel', function () use ($run) {
expect($run('--exclude-group=integration')) 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'); ->toContain('Parallel: 3 processes');
})->skipOnWindows(); })->skipOnWindows();