Skip to content

Commit 50dc372

Browse files
Fix snapshots
1 parent 56f7c76 commit 50dc372

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

tests/SnapshotTextDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private function applyPregReplace(mixed $data): ?string
2121
$regexes = [
2222
'/[\s]+[0-9]+.[0-9]+s|0s/' => ' DURATION-IN-SECONDS',
2323
'/\/(.*?)\/tests\/ExampleTests/' => '/tests/ExampleTests',
24-
// '/([\s]+)([\d]+)%/' => ' $2%',
24+
'/FAILED(.*?)>(.*?)[ ]{3,}([\S]+)/' => 'FAILED$1>$2 $3',
2525
'/─[\S]*─/' => '───────────────────',
2626
'/([\d]+.[\d]+)%/' => 'SOME-PERCENTAGE',
2727
];

tests/__snapshots__/OutputTest__testPrintCompactModeAtRunTime__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
1 tests/ExampleTests/TestThatHasAllStatusesTest.php:31
4343

4444
───────────────────
45-
FAILED Tests\ExampleTests\TestThatHasAllStatusesTest > error Exception
45+
FAILED Tests\ExampleTests\TestThatHasAllStatusesTest > error Exception
4646
error
4747

4848
at tests/ExampleTests/TestThatHasAllStatusesTest.php:38

tests/__snapshots__/OutputTest__testPrintCompactMode__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
1 tests/ExampleTests/TestThatHasAllStatusesTest.php:31
4343

4444
───────────────────
45-
FAILED Tests\ExampleTests\TestThatHasAllStatusesTest > error Exception
45+
FAILED Tests\ExampleTests\TestThatHasAllStatusesTest > error Exception
4646
error
4747

4848
at tests/ExampleTests/TestThatHasAllStatusesTest.php:38

tests/__snapshots__/OutputTest__testPrintWithoutConfig__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
1 tests/ExampleTests/TestThatHasAllStatusesTest.php:31
5454

5555
───────────────────
56-
FAILED Tests\ExampleTests\TestThatHasAllStatusesTest > error Exception
56+
FAILED Tests\ExampleTests\TestThatHasAllStatusesTest > error Exception
5757
error
5858

5959
at tests/ExampleTests/TestThatHasAllStatusesTest.php:38

tests/__snapshots__/OutputTest__testWithProfilingAtRunTime__1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
1 tests/ExampleTests/TestThatHasAllStatusesTest.php:31
5454

5555
───────────────────
56-
FAILED Tests\ExampleTests\TestThatHasAllStatusesTest > error Exception
56+
FAILED Tests\ExampleTests\TestThatHasAllStatusesTest > error Exception
5757
error
5858

5959
at tests/ExampleTests/TestThatHasAllStatusesTest.php:38

0 commit comments

Comments
 (0)