diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index a0769abf..240e75f9 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -353,3 +353,4 @@ ✓ depends run test only once Tests: 6 skipped, 207 passed + \ No newline at end of file diff --git a/tests/Visual/Success.php b/tests/Visual/Success.php index 609f5b19..1323da5b 100644 --- a/tests/Visual/Success.php +++ b/tests/Visual/Success.php @@ -17,7 +17,10 @@ test('visual snapshot of test suite on success', function () { }; if (getenv('REBUILD_SNAPSHOTS')) { - file_put_contents($snapshot, $output()); + // Strip time from end of snapshot + $outputContent = preg_replace('/Time\: \s+\d+\.\d+s\s+/m', '', $output()); + + file_put_contents($snapshot, $outputContent); } elseif (!getenv('EXCLUDE')) { $output = explode("\n", $output()); array_pop($output);