mirror of
https://github.com/pestphp/pest.git
synced 2026-03-05 23:37:22 +01:00
tests: updates snapshot testing
This commit is contained in:
@ -3,4 +3,3 @@
|
||||
test('global functions are loaded', function () {
|
||||
expect(helper_returns_string())->toBeString();
|
||||
});
|
||||
|
||||
|
||||
@ -26,6 +26,7 @@ uses()
|
||||
})
|
||||
->in('Hooks');
|
||||
|
||||
function helper_returns_string() {
|
||||
function helper_returns_string()
|
||||
{
|
||||
return 'string';
|
||||
}
|
||||
|
||||
@ -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');
|
||||
|
||||
Reference in New Issue
Block a user