tests: updates snapshot testing

This commit is contained in:
Nuno Maduro
2023-03-20 16:10:53 +00:00
parent 17e242a5f6
commit 5723da1043
3 changed files with 3 additions and 3 deletions

View File

@ -3,4 +3,3 @@
test('global functions are loaded', function () { test('global functions are loaded', function () {
expect(helper_returns_string())->toBeString(); expect(helper_returns_string())->toBeString();
}); });

View File

@ -26,6 +26,7 @@ uses()
}) })
->in('Hooks'); ->in('Hooks');
function helper_returns_string() { function helper_returns_string()
{
return 'string'; return 'string';
} }

View File

@ -15,6 +15,6 @@ $run = function () {
}; };
test('parallel', function () use ($run) { 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'); ->toContain('Parallel: 3 processes');
})->skip(PHP_OS_FAMILY === 'Windows'); })->skip(PHP_OS_FAMILY === 'Windows');