chore: updates snapshots

This commit is contained in:
nuno maduro
2026-08-24 10:51:08 +01:00
parent 4a65054f83
commit e763a87b42
9 changed files with 101 additions and 23 deletions
@@ -1 +0,0 @@
the same on every attempt
@@ -1,5 +1,5 @@
Pest Testing Framework 5.1.1.
Pest Testing Framework 5.1.2.
USAGE: pest <file> [options]
@@ -1,3 +1,3 @@
Pest Testing Framework 5.1.1.
Pest Testing Framework 5.1.2.
-12
View File
@@ -20,18 +20,6 @@ test('parallel', function () use ($run): void {
$output = $run('--exclude-group=integration');
$output = implode("\n", array_slice(explode("\n", (string) $output), -10));
if (getenv('REBUILD_SNAPSHOTS')) {
preg_match('/Tests:\s+(.+\(\d+ assertions\))/', $output, $matches);
$file = file_get_contents(__FILE__);
$file = preg_replace(
'/\$expected = \'.*?\';/',
"\$expected = '2 deprecated, 4 warnings, 5 incomplete, 3 notices, 40 todos, 27 skipped, 1578 passed (3426 assertions)';",
$file,
);
file_put_contents(__FILE__, $file);
}
$expected = '2 deprecated, 4 warnings, 5 incomplete, 3 notices, 40 todos, 27 skipped, 1578 passed (3426 assertions)';
expect($output)